dotnet / dotnet/reactive

ToAsyncEnumerable_Observable_Cancel_InFlight sometimes fails spuriously

Open
#2,139 0 comments 0 reactions 0 assignees View on GitHub
[area] Ix
Dominant language
C#
Stars
7.2k
Forks
798
PR merge metrics
No merged PRs in 30d

Description

We occasionally get failures in the `ToAsyncEnumerable_Observable_Cancel_InFlight` test. When we rerun the build it typically succeeds.

It's possible that this is because there are two different phases in which cancellation could occur—the initial `await` when we acquire the enumerator, and then the part the test inspects, the `MoveNextAsync`. Or it's also possible that it's related to the fact that we're using `ValueTask` in a slightly unorthodox way. Or it could be something else. We need to investigate.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.