Created
May 5, 2021 17:49
-
-
Save jcc10/3543f9bba8275738cac7cbd417010884 to your computer and use it in GitHub Desktop.
Test of detatched deno commands.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Started 1"); | |
const p = Deno.run({ | |
cmd: ["deno", "run", "./test2.ts"], | |
}); | |
console.log("exited 1") | |
Deno.exit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { delay } from "https://deno.land/std/async/mod.ts"; | |
console.log("Started 2"); | |
await delay(1000); | |
console.log("Stopped 2"); |
Author
jcc10
commented
May 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment