f (err !== null) {\\n      app.ports.valueWasSaved.send(id);\\n    }\\n  })\\n})\\n```\\n\\nThe above code will work, but has two problems. First, when an ID is received we don't know which command\\nit is a response to. Second, we're currently just ignoring errors. Both of these problems are solvable,\\nbut the best solution will depend on your specific use case.\\n\\nIn Gren 25S, we've made this pattern a bit easier by allowing you to define task ports.\\n\\nDefining the port itself is simple enough:\\n\\