[][src]Function tokio_executor::set_default

pub fn set_default<T>(executor: T) -> DefaultGuard where
    T: Executor + 'static, 

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.