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

Child::status().await without closing stdin? #44

Closed
nickeb96 opened this issue Jun 5, 2023 · 3 comments
Closed

Child::status().await without closing stdin? #44

nickeb96 opened this issue Jun 5, 2023 · 3 comments

Comments

@nickeb96
Copy link

nickeb96 commented Jun 5, 2023

I'd like to be able to await on a running processes to finish without async-process closing its stdin. I saw that there is a try_await which doesn't close stdin, but that function isn't async.

@taiki-e
Copy link
Collaborator

taiki-e commented Jun 12, 2023

Is this the same issue as #19?

@nickeb96
Copy link
Author

Yes, these are related

@notgull
Copy link
Member

notgull commented Jan 15, 2024

You can take out stdin and then call Child::status() without dropping stdin.

@notgull notgull closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants