Replies: 2 comments 4 replies
-
You can await child.status, or use the promise like so:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Sounds like const is_child_alive = child =>
Promise.race(
child.status.then(_ => false),
true
); Assuming it would be alive until its (I can't find the documentation!) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With deno unstable we can spawn a Deno.Child, but how to check whether it is still alive or not ?
Beta Was this translation helpful? Give feedback.
All reactions