Skip to main content

worker_pool_destroy

Function worker_pool_destroy 

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

Destroys a string worker pool after joining its workers.

§Parameters

§Returns

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

§Errors

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

§Examples

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