GlobalExecutorConfig in async_global_executor - Rust (original) (raw)
Struct GlobalExecutorConfig
pub struct GlobalExecutorConfig { /* private fields */ }
Expand description
Configuration to init the thread pool for the multi-threaded global executor.
Use the specified environment variable to find the number of threads to spawn.
Use the specified value as the minimum number of threads.
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.
Use the specified prefix to name the threads.