Skip to content

Fix additional cancellation case for GetAssetsAsync#51990

Merged
1 commit merged intodotnet:mainfrom
sharwell:fix-cancellation
Mar 19, 2021
Merged

Fix additional cancellation case for GetAssetsAsync#51990
1 commit merged intodotnet:mainfrom
sharwell:fix-cancellation

Conversation

@sharwell
Copy link
Contributor

This change ensures the writer callback for InvokeStreamingServiceAsync only closes the pipe writer in two cases:

  • All data is written
  • An error (non-cancellation) occurred

For the cancellation case, InvokeStreamingServiceAsync manages closing the pipe writer to ensure it is coordinated with cancellation of the reader.

@sharwell sharwell requested a review from a team as a code owner March 19, 2021 16:37
@ghost ghost added the Area-IDE label Mar 19, 2021
Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approval

@ghost ghost merged commit daa5f1d into dotnet:main Mar 19, 2021
@ghost ghost added this to the Next milestone Mar 19, 2021
@sharwell sharwell deleted the fix-cancellation branch March 19, 2021 22:23
@allisonchou allisonchou modified the milestones: Next, 16.10.P2 Mar 29, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants