pub struct ParallelExecutor { /* private fields */ }Expand description
Parallel execution engine for agents
Implementations§
Source§impl ParallelExecutor
impl ParallelExecutor
Sourcepub fn with_config(config: ExecutionConfig) -> Self
pub fn with_config(config: ExecutionConfig) -> Self
Create a new parallel executor with custom configuration
Sourcepub async fn execute_phase(
&self,
phase: &ExecutionPhase,
) -> Result<Vec<ExecutionResult>>
pub async fn execute_phase( &self, phase: &ExecutionPhase, ) -> Result<Vec<ExecutionResult>>
Execute a phase of tasks in parallel
Sourcepub fn config(&self) -> &ExecutionConfig
pub fn config(&self) -> &ExecutionConfig
Get the current configuration
Sourcepub fn set_config(&mut self, config: ExecutionConfig)
pub fn set_config(&mut self, config: ExecutionConfig)
Update the configuration
Sourcepub fn set_max_concurrency(&mut self, max_concurrency: usize)
pub fn set_max_concurrency(&mut self, max_concurrency: usize)
Set the maximum concurrency
Sourcepub fn set_timeout_ms(&mut self, timeout_ms: u64)
pub fn set_timeout_ms(&mut self, timeout_ms: u64)
Set the timeout for tasks
Sourcepub fn set_verbose(&mut self, verbose: bool)
pub fn set_verbose(&mut self, verbose: bool)
Enable or disable verbose logging
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelExecutor
impl RefUnwindSafe for ParallelExecutor
impl Send for ParallelExecutor
impl Sync for ParallelExecutor
impl Unpin for ParallelExecutor
impl UnwindSafe for ParallelExecutor
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