GlobalExecutorConfig in async_global_executor - Rust (original) (raw)

Struct GlobalExecutorConfig

Source

pub struct GlobalExecutorConfig { /* private fields */ }

Expand description

Configuration to init the thread pool for the multi-threaded global executor.

Source§

Source

Use the specified environment variable to find the number of threads to spawn.

Source

Use the specified value as the minimum number of threads.

Source

Use the specified value as the maximum number of threads for async tasks. To limit the maximum number of threads for blocking tasks, please use theBLOCKING_MAX_THREADS environment variable.

Source

Use the specified prefix to name the threads.

§

§

§

§

§

§