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

Set the default executor for the duration of the closure

Panics

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