Skip to content
New issue

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

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

Already on GitHub? # to your account

No way to Close a process #31

Open
seertenedos opened this issue Oct 27, 2019 · 0 comments
Open

No way to Close a process #31

seertenedos opened this issue Oct 27, 2019 · 0 comments

Comments

@seertenedos
Copy link

In my case i was to kick off an async process but after some time i sometimes need to stop it gracefully so it can clean up after itself. I was going to use the cancellation token for this but that uses the kill method right away not the close meaning the process does not get a chance to clean itself up nicely.

There have also been cases where i want to check the error and output streams before the process ends. It would be nice if there was another method that returns an object instead of a task that has the streams, process status and a few methods like close on it as will as a task in there that you can await on for the process to finish. That way you still have access to the info and methods as well as being able to await the process.

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

No branches or pull requests

1 participant