Struct workpool::dynamic_pool::WaitHandle
source · pub struct WaitHandle<O> { /* private fields */ }
Expand description
WaitHandle provides a handle to wait for remaining items to finish processing.
Implementations§
source§impl<O> WaitHandle<O>
impl<O> WaitHandle<O>
sourcepub fn set_concurrency_limit(&self, concurrency_limit: i64)
pub fn set_concurrency_limit(&self, concurrency_limit: i64)
Adjust the concurrency_limit. Only this many work items will be processed concurrently. If the pool is currently processing more than the new limit’s amount of work the current work will finish processing until the amount of concurrenct work drops below the new threshold.