Skip to main content

shared

Function shared 

Source
pub fn shared() -> Arc<HybridExecutor> ⓘ
Expand description

Obtain an owned handle to the shared process-wide executor.

Higher layers (e.g. the moirai umbrella’s global runtime) wrap this same Arc so that parallel data-parallel work and async tasks run on one unified hybrid scheduler rather than separate thread pools.