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

Conditionally create an instance of CancellationException in Channel.… #2384

Merged
merged 1 commit into from Nov 16, 2020

Commits on Nov 13, 2020

  1. Conditionally create an instance of CancellationException in Channel.…

    …cancel()
    
    Avoid creating costly exception when the channel is cancelled to save a few cycles when it's not necessary. Cancellation is heavy-enough when the channel is open, so the single check won't worsen it.
    qwwdfsad committed Nov 13, 2020
    Copy the full SHA
    a15d20a View commit details
    Browse the repository at this point in the history