Skip to content

Conversation

@danielcweber
Copy link
Collaborator

@danielcweber danielcweber commented Mar 24, 2020

Fixes #1157.

@akarnokd Not sure whether my proposed solution isn't already overkill. You are more experienced with lock free code.

I think it is safe to cancel a MoveNextAsync in-flight because it cancels the wait for an upstream notification. There is no work that in reality cannot be cancelled and would still go on.

@danielcweber danielcweber requested a review from akarnokd March 24, 2020 15:50
@danielcweber danielcweber merged commit 103c60e into dotnet:master Mar 24, 2020
@danielcweber danielcweber deleted the Fix1157 branch March 24, 2020 17:13
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.

Cancelling IAsyncEnumerable from ToAsyncEnumerable(IObservable) does not raise TaskCancellationException

2 participants