Skip to content

Running shell command in an async task? #247

Answered by ioquatix
emiltin asked this question in Q&A
Discussion options

You must be logged in to vote

With Async 2+ it just works, and you don't need any custom code, it's all non-blocking, including Process.wait et al, reading and writing to the child process (via pipes), etc. Let me know if you run into any issues. Feel free to create one task to read and one to write, etc, depending on your requirements.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emiltin
Comment options

Answer selected by ioquatix
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
Converted from issue

This discussion was converted from issue #246 on June 12, 2023 13:32.