pub fn stop_current_thread() -> Task<bool>Notable traits for Task<T>impl<T> Future for Task<T>    type Output = T;
Expand description

Stop the current executor thread, if we exceed the configured min value

Returns whether the thread has been stopped.

Examples

async_global_executor::stop_current_thread();