Skip to main content

worker_pool_enqueue

Function worker_pool_enqueue 

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

Enqueues one string request and fails when the bounded queue is closed.

§Parameters

§Returns

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

§Errors

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

§Examples

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