Skip to main content

stop_thread

Function stop_thread 

Source
pub fn stop_thread() -> Task<bool> ⓘ
Expand description

Stops one worker of the runtime this thread is inside (or the default one), unless only the runtime’s minimum runs: it takes no new task from now on and exits once the tasks it has are done. The task completes with whether a worker was stopped, once it takes no new task.