-
Notifications
You must be signed in to change notification settings - Fork 815
Set Cancellable.token from async computation #18238
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
Conversation
❗ Release notes required
|
@auduchinok pls take a look. Searching for |
I wonder if we could remove the cancellable CE altogether and just capture the cancellation token into AsyncLocal at all async service endpoints instead. |
Sounds good! I think @vzarytovskii had a similar idea some time ago. |
That would probably require converting all the |
@majocha This is from the same test with this PR applied:
|
Yes, I have another idea. Just define |
@majocha Yes, with this patch all the tests are green 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #18235