-
Notifications
You must be signed in to change notification settings - Fork 8
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
Stopping the task by a cancellation token #3
Comments
Currently - no. As a fast workaround, you may try to use token.Register with In all my use cases I start/stop tasks (a) never (b) only from administration page (during some maintenance). What is your use case from stopping Task (stopping "forever", because cancellation token is not "undoable") with cancellation token? |
@justdmitry My use case is cancelling the task for ever only after some async method( |
Implemented in v5 |
Is there a way to send a cancellation token to the task to stop it?
for example:
The text was updated successfully, but these errors were encountered: