Struct executor_service::Executors
source · pub struct Executors;Implementations§
source§impl Executors
impl Executors
sourcepub fn new_fixed_thread_pool(
thread_count: u32
) -> Result<ExecutorService, ExecutorServiceError>
pub fn new_fixed_thread_pool( thread_count: u32 ) -> Result<ExecutorService, ExecutorServiceError>
Creates a thread pool with a fixed size. All threads are initialized at first.
REMARKS: The maximum value for thread_count is currently 100
If you go beyond that, the function will fail, producing an ExecutorServiceError::ParameterError