Skip to main content

take_task_handle

Function take_task_handle 

Source
pub fn take_task_handle() -> TaskHandle
Expand description

Takes the current task’s TaskHandle out of task-local storage.

Called by macro-generated code inside Task::execute(). Panics if no handle was set (indicates an executor bug).