Skip to main content

with_executor_as

Function with_executor_as 

Source
pub fn with_executor_as<E: Executor, T>(
    executor: &E,
    scoped: impl FnOnce(&E) -> T,
) -> T
Expand description

Set the global executor instance for a given function scope. The global executor supports being modified recursively as it is restored via stack but should not be called in parellel.