pub fn with_default<T, F, R>(executor: &mut T, enter: &mut Enter, f: F) -> Rwhere T: Executor, F: FnOnce(&mut Enter) -> R,
Set the default executor for the duration of the closure
This function panics if there already is a default executor set.