[][src]Function tokio_executor::with_default

pub fn with_default<T, F, R>(executor: &mut T, enter: &mut Enter, f: F) -> R where
    T: Executor,
    F: FnOnce(&mut Enter) -> R, 

Set the default executor for the duration of the closure

Panics

This function panics if there already is a default executor set.