Crate task_killswitch

Source

Functions§

activateDeprecated
activate_now
Triggers the killswitch, thereby scheduling all registered tasks to be killed.
killed_signal
Returns a future that resolves when all registered tasks have been killed, after activate_now has been called.
spawn_with_killswitch
Spawns a new asynchronous task and registers it in the crate’s global killswitch.