pub fn set_default<T>(executor: T) -> DefaultGuardwhere
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.