Skip to main content

worker_pool_request_shutdown

Function worker_pool_request_shutdown 

Source
pub fn worker_pool_request_shutdown(
    pool: &WorkerPool<String>,
) -> Result<(), WorkerPoolError>
Expand description

Requests shutdown of a string worker pool.

§Parameters

§Returns

Returns the successful value produced by crate::worker_pool::worker_pool_request_shutdown or an error when the operation fails.

§Errors

Returns an error value when crate::worker_pool::worker_pool_request_shutdown cannot complete successfully.

§Examples

ⓘ
let _result = pharos_runtime_core::worker_pool::worker_pool_request_shutdown(todo!());