tokio_reactor

Function with_default

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

Set the default reactor for the duration of the closure

ยงPanics

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