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

AsyncEnumerable.ToObservable: Use Try...-methods on TaskCompletionSources to avoid unexpected exceptions when the iterator is cancelled. #321

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

danielcweber
Copy link
Collaborator

@danielcweber danielcweber commented Jan 25, 2017

As described in #319, concurrent cancellation of async iterators may lead to unexpected exceptions. At least in some places (e.g. those where the Try... methods of TaskCompletionSource may be used), an easy fix is possible.

…rces to avoid unexpected exceptions when the iterator is cancelled.
@clairernovotny clairernovotny merged commit 072abb2 into dotnet:master Jan 25, 2017
@danielcweber danielcweber deleted the UseTryMethodsForIxToObservable branch January 25, 2017 13:28
@clairernovotny clairernovotny modified the milestone: 4.0 May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants