Skip to main content

global

Function global 

Source
pub fn global() -> &'static HybridExecutor
Expand description

Borrow the shared, lazily-initialized process-wide executor.

Provides a single default runtime so higher-level crates (e.g. moirai-parallel’s data-parallel primitives) can schedule work without each constructing — and over-subscribing — their own thread pool. Built once with the default ExecutorBuilder configuration on first access.

§Panics

Panics if the executor cannot be initialized, which should not happen under normal conditions.