Skip to content
Discussion options

You must be logged in to vote

You can return early, but then the pipe will be closed -- CliWrap will not finish draining the data for you, but the process will also not be able to write any more data either. This is exactly how PipeTarget.Null works, so the warning in the readme applies here:

https://github.com/Tyrrrz/CliWrap#:~:text=Warning%3A%20Using%20PipeTarget,Stream.Null).

Generally it should be fine, but whether the process will be able to complete successfully depends on the program you're running. You won't get a deadlock though.

Replies: 1 comment 3 replies

Comment options

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

@Tyrrrz
Comment options

@ptr727
Comment options

Answer selected by ptr727
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