Skip to content

Conversation

@Mpdreamz
Copy link
Contributor

Expose CancelAsyncReads that will break the StreamReader.ReadAsync blocking in a thread at will.

StreamReader.ReadAsync does not expose a cancellationtoken even if the
underlying Stream.ReadAsync does. If you are no longer interested in
the console output you can now call CancelAsyncReads to break out of
the possibly blocking StreamReader.ReadAsync calls. Doing this will
leave the launched process running.

and StartAsyncReads allows you to resubscribe again.

cc @codebrain @russcam

Expose `CancelAsyncReads`  that will break the `StreamReader.ReadAsync` blocking in a thread at will.

`StreamReader.ReadAsync` does not expose a cancellationtoken even if the
underlying `Stream.ReadAsync` does. If you are no longer interested in
the console output you can now call `CancelAsyncReads` to break out of
the possibly blocking `StreamReader.ReadAsync` calls. Doing this will
leave the launched process running.

and `StartAsyncReads` allows you to resubscribe again.
@Mpdreamz Mpdreamz merged commit aa8e91e into master Aug 17, 2018
@Mpdreamz Mpdreamz deleted the feature/start-stop-async-reads branch August 17, 2018 11:49
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

Successfully merging this pull request may close these issues.

2 participants