Skip to content

Instantly share code, notes, and snippets.

@jcc10
Created May 5, 2021 17:49
Show Gist options
  • Save jcc10/3543f9bba8275738cac7cbd417010884 to your computer and use it in GitHub Desktop.
Save jcc10/3543f9bba8275738cac7cbd417010884 to your computer and use it in GitHub Desktop.
Test of detatched deno commands.
console.log("Started 1");
const p = Deno.run({
cmd: ["deno", "run", "./test2.ts"],
});
console.log("exited 1")
Deno.exit();
import { delay } from "https://deno.land/std/async/mod.ts";
console.log("Started 2");
await delay(1000);
console.log("Stopped 2");
@jcc10
Copy link
Author

jcc10 commented May 5, 2021

deno 1.9.0 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.5
typescript 4.2.2
digitalkitsune@pop-os:~/github/deno/playground$ deno run -A ./test1.ts
Check file:///home/digitalkitsune/github/deno/playground/test1.ts
Started 1
exited 1
digitalkitsune@pop-os:~/github/deno/playground$ Check file:///home/digitalkitsune/github/deno/playground/test2.ts
Started 2
Stopped 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment