Skip to main content

stop_current_thread

Function stop_current_thread 

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

Stops the worker this task runs on, as stop_thread stops one: false on a thread that is not a worker of its runtime, or when only the minimum runs.