tokio_executor

Function set_default

Source
pub fn set_default<T>(executor: T) -> DefaultGuard
where T: Executor + 'static,
Expand description

Sets executor as the default executor, returning a guard that unsets it when dropped.

ยงPanics

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