pub fn set_default(handle: &Handle) -> DefaultGuard
Expand description
Sets handle
as the default reactor, returning a guard that unsets it when
dropped.
ยงPanics
This function panics if there already is a default reactor set.
pub fn set_default(handle: &Handle) -> DefaultGuard
Sets handle
as the default reactor, returning a guard that unsets it when
dropped.
This function panics if there already is a default reactor set.