Retain cancel callback until ForEachAsync completes by idg10 · Pull Request #1981 · dotnet/reactive (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

idg10

merged 1 commit into

Jul 27, 2023

Conversation

@idg10

Resolves #1940

The code that waits for processing to complete was after the closing brace of the using that unregisters the cancellation callback. This meant that it almost immediately unregistered for cancellation notifications. Simply moving that await inside the relevant block addresses this.

@idg10

HowardvanRooijen

@idg10 idg10 deleted the feature/1940-asyncrx-foreachasync-ignores-cancel branch

July 27, 2023 21:24

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

2 participants

@idg10 @HowardvanRooijen