Function tokio_executor::set_default
source · [−]pub fn set_default<T>(executor: T) -> DefaultGuard where
T: Executor + 'static, Expand description
Sets executor as the default executor, returning a guard that unsets it when
dropped.
Panics
This function panics if there already is a default executor set.