Skip to main content

global_executor

Function global_executor 

Source
pub fn global_executor() -> Executor
Expand description

Returns the process-wide global executor. Multi-threaded on both runtimes: smol runs one worker thread per core, tokio uses its own worker threads.

Note: this is the convenience path. Resource-conscious users should create and drive their own executor and pass it to karyon APIs; no worker threads are spawned until the first call to this function.