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
Add cancel()
to RunningTask
and deprecate kill()
#2679
Comments
cancel()
to `RunningTask and deprecate kill()cancel()
to RunningTask
and deprecate kill()
So the point is just the name change? I think if we are going to introduce "another way" to kill a task it should behave at least slightly differently. |
Yes the point is to change the name and refer to cancelling a task. Brings the language in line with |
Are there problems with making |
It would take some work, as |
|
I think kill() should be deprecated and I think we should also work to support throwing CancelledErrors. |
Continuing the theme of providing the new interfaces before 2.0.
For now we could keep it the same, without using
CancelledError
.Potentially,
kill()
could be made private and used by the scheduler, whereby the task is cancelled even if it tries to suppress the exception.The text was updated successfully, but these errors were encountered: