pub struct ParallelEval;Expand description
Parallel evaluation primitives.
Implementations§
Source§impl ParallelEval
impl ParallelEval
Sourcepub fn par_map(scheduler: &mut Scheduler, actions: Vec<RtObject>) -> Vec<TaskId>
pub fn par_map(scheduler: &mut Scheduler, actions: Vec<RtObject>) -> Vec<TaskId>
Evaluate multiple independent tasks in parallel and return results.
Sourcepub fn par_pair(
scheduler: &mut Scheduler,
action_a: RtObject,
action_b: RtObject,
) -> (TaskId, TaskId)
pub fn par_pair( scheduler: &mut Scheduler, action_a: RtObject, action_b: RtObject, ) -> (TaskId, TaskId)
Spawn two tasks and combine their results.
Auto Trait Implementations§
impl Freeze for ParallelEval
impl RefUnwindSafe for ParallelEval
impl Send for ParallelEval
impl Sync for ParallelEval
impl Unpin for ParallelEval
impl UnsafeUnpin for ParallelEval
impl UnwindSafe for ParallelEval
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