Skip to main content

default_executor

Function default_executor 

Source
pub fn default_executor() -> Box<dyn SystemExecutor>
Expand description

Returns the default executor for the current platform.

On Wasm or when the multi_threaded feature is disabled, this returns a SingleThreadedExecutor. Otherwise it returns a MultiThreadedExecutor.