Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail on cancellation #1415

Merged
merged 1 commit into from
May 27, 2022
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 27, 2022

Motivation:

Cancellation should not throw if the RPC has already been cancelled.

Modifications:

  • Don't fail a cancellation promise if the call has not yet been started
    or has already been cancelled.

Result:

Cancellation does not fail.

Motivation:

Cancellation should not throw if the RPC has already been cancelled.

Modifications:

- Don't fail a cancellation promise if the call has not yet been started
  or has already been cancelled.

Result:

Cancellation does not fail.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label May 27, 2022
@glbrntt glbrntt requested a review from fabianfett May 27, 2022 13:01
Copy link
Collaborator

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

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

Love it! Makes cancellation much easier to use!

@glbrntt glbrntt merged commit 2d4b290 into grpc:main May 27, 2022
@glbrntt glbrntt deleted the gb-cancel-should-not-fail branch May 27, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants