-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Passing cancellation reason to cancel handler #17
Comments
Do you have any use-case in mind? I don't see why not to add it, but I also don't see what it could be useful for. |
Not really a use case, I just saw it was a low-hanging fruit. It kind of opens a bi-directional channel between the promise provider and consumer. |
// @bfred-it @szmarczak Thoughts? |
In 2 years nobody actually needed this, so unless there's real interest maybe it shouldn't be implemented "just in case". Either way, 🤷♂️ |
I agree with @bfred-it. I don't see any use case either. |
Does it make sense to pass the cancellation reason to the registered cancel handlers, like this:
If it does, I'll make a PR.
The text was updated successfully, but these errors were encountered: