how to exit all async command in deno task?

consider this code
{
  "tasks": {
    "dev-server": "deno run --watch --allow-read --allow-net --allow-env dev.ts",
    "dev-client": "deno run -A --unstable --node-modules-dir npm:vite",
    "dev": "deno task dev-client & deno task dev-server"
  }

}


when i fire
deno task dev
it runs as expected. The problem is when i
ctrl-c
only one that get exited(dev-client). How to make both exit like behavior of
npm-run-all -p dev:*
Was this page helpful?