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
pool: Input consumed bycrate::worker_pool::worker_pool_enqueue.item: Input consumed bycrate::worker_pool::worker_pool_enqueue.
§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!());§Related
crate::worker_poolfor adjacent helpers that share the same runtime surface.