Skip to content

how to set timeout when execute new process? #259

Discussion options

You must be logged in to vote

The latest syntax is...

await $`sleep 999`.timeout('5s')

// Or with a specific signal.
await $`sleep 999`.timeout('5s', 'SIGKILL')

Updated docs are here: https://google.github.io/zx/process-promise#timeout

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@antongolub
Comment options

@mblarsen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by antonmedv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants