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.