pub fn with_executor_as<E: Executor, T>(
executor: &E,
scoped: impl FnOnce(&E) -> T,
) -> TExpand 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.