[−][src]Function yaar::with_executor_as
pub fn with_executor_as<E: Executor, T>(
executor: &E,
scoped: impl FnOnce(&E) -> T
) -> T
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.