pub struct ParallelExecutor { /* private fields */ }Expand description
Parallel executor for pipeline tasks
Implementations§
Source§impl ParallelExecutor
impl ParallelExecutor
Sourcepub fn new(config: ParallelConfig) -> Self
pub fn new(config: ParallelConfig) -> Self
Create a new parallel executor
Sourcepub fn submit_task(&mut self, task: ParallelTask) -> SklResult<()>
pub fn submit_task(&mut self, task: ParallelTask) -> SklResult<()>
Submit a task for parallel execution
Sourcepub fn get_task_result(&self, task_id: &str) -> Option<TaskResult>
pub fn get_task_result(&self, task_id: &str) -> Option<TaskResult>
Get task result
Sourcepub fn statistics(&self) -> ExecutorStatistics
pub fn statistics(&self) -> ExecutorStatistics
Get executor statistics
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more