Skip to content

Making 2+ processes run in non-blocking mode #56

Answered by DaanDeMeyer
coder137 asked this question in Q&A
Discussion options

You must be logged in to vote

The reproc_poll (or reproc::poll in C++) should allow to implement this. If you check the C examples, there's a detailed example on how to use reproc_poll to run multiple processes at once. Although it might be nice to write an extra function on top of it to run multiple processes concurrently and wait for them all to complete. We don't currently have that though. Note that the reproc++ API for poll is currently a bit bad until we can update reproc++ to minimum C++17 so we can use std::optional.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@coder137
Comment options

@DaanDeMeyer
Comment options

@coder137
Comment options

Answer selected by coder137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants