pub struct ParallelWorkerPool { /* private fields */ }Expand description
Parallel worker pool that uses the sub-worker thread pool for execution
Each flow’s units are submitted as a separate high-priority task to the worker pool. Different flows can execute in parallel, but each flow’s units are processed sequentially to maintain version ordering.
Implementations§
Source§impl ParallelWorkerPool
impl ParallelWorkerPool
Sourcepub fn new(scheduler: SchedulerService) -> Self
pub fn new(scheduler: SchedulerService) -> Self
Create a new parallel worker pool
Trait Implementations§
Source§impl WorkerPool for ParallelWorkerPool
impl WorkerPool for ParallelWorkerPool
Source§fn process(
&self,
txn: &mut StandardCommandTransaction,
units: UnitsOfWork,
engine: &FlowEngine,
) -> Result<()>
fn process( &self, txn: &mut StandardCommandTransaction, units: UnitsOfWork, engine: &FlowEngine, ) -> Result<()>
Process a batch of units of work grouped by flow Read more
Auto Trait Implementations§
impl Freeze for ParallelWorkerPool
impl !RefUnwindSafe for ParallelWorkerPool
impl Send for ParallelWorkerPool
impl Sync for ParallelWorkerPool
impl Unpin for ParallelWorkerPool
impl !UnwindSafe for ParallelWorkerPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more