You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code snippet should correctly handle the cancellation token in the while loop.
What is the actual outcome?
The current code uses while (cancellationToken.IsCancellationRequested) which will break the loop when the cancellation is requested. It should use while (!cancellationToken.IsCancellationRequested) instead.
What is the stacktrace of the exception(s) if any?
Not applicable.
Do you have a code snippet or project that reproduces the problem?
Bug
The issue is in the documentation of the library, not in a specific version of the library itself.
Not applicable.
There is a typo in the documentation code snippet for reading file lines using Observable.Create.
https://github.com/dotnet/reactive/blob/main/Rx.NET/Documentation/IntroToRx/03_CreatingObservableSequences.md#observablecreate
The code snippet should correctly handle the cancellation token in the while loop.
The current code uses
while (cancellationToken.IsCancellationRequested)
which will break the loop when the cancellation is requested. It should usewhile (!cancellationToken.IsCancellationRequested)
instead.Not applicable.
Yes, here is the corrected code snippet:
The text was updated successfully, but these errors were encountered: