Open slavashar opened 2 years ago
I can reproduce it. This is the line where the NRE is thrown:
if (_values!.TryDequeue(out _current!))
Hi, is there any known workaround for this, or plans to merge the linked PR in the near future? This is currently affecting me with .NET 7, System.Interactive 6.0.1.
Bug
It look like there is a race condition in
ToAsyncEnumerable
which can causeNullReferenceException
when the cancellation token is requested.Ix
System.Linq.Async 6.0.1
Windows, .NET6
Cancellation of
ObservableAsyncEnumerable
.OperationCanceledException
is thrown.NullReferenceException
is thrown intermittently.