Function tokio_reactor::with_default[][src]

pub fn with_default<F, R>(handle: &Handle, enter: &mut Enter, f: F) -> R where
    F: FnOnce(&mut Enter) -> R, 

Set the default reactor for the duration of the closure

Panics

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