Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subprocess_read_stdout() blocks #78

Closed
SimonMaracine opened this issue Feb 3, 2024 · 4 comments
Closed

subprocess_read_stdout() blocks #78

SimonMaracine opened this issue Feb 3, 2024 · 4 comments

Comments

@SimonMaracine
Copy link

Hello.
As you pointed out in the documentation, the subprocess_read_stdout() function is blocking when there is no data available to read.
I need to be able to read and write to a subprocess before joining it, but my problem is that I need the read operation to be asynchronous. Is there an easy solution for changing this behavior?

@sheredom
Copy link
Owner

sheredom commented Feb 5, 2024

Did you enable subprocess_option_enable_async?

@SimonMaracine
Copy link
Author

SimonMaracine commented Feb 5, 2024

Yes, of course.
Sorry, I opened this issue before I saw legerch's pull request. I only checked the Issues section before opening this one.

@sheredom
Copy link
Owner

sheredom commented Feb 5, 2024

No bother!

@sheredom sheredom closed this as completed Feb 5, 2024
@sheredom
Copy link
Owner

sheredom commented Feb 5, 2024

Trying to fix this in #80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants