Function task::set_kill_handler
source · pub fn set_kill_handler(function: KillHandler) -> Result<(), &'static str>Expand description
Registers a kill handler function for the current Task.
KillHandlers are called when a Task panics or otherwise fails
(e.g., due to a machine exception).
Locking / Deadlock
Obtains the lock on this Task’s inner state in order to mutate it.