Function safina_executor::set_thread_executor
source · [−]pub fn set_thread_executor(executor: Weak<Executor>) -> ThreadExecutorGuardExpand description
Sets executor as the Executor for the current thread,
saving it to thread-local storage.
Calls to safina_executor::spawn and other crate-level
functions will use this executor.
Returns a guard struct.
When the guard drops, it removes executor from thread-local storage.
This is a low-level function. You probably don’t need to use this.