[][src]Trait goggles::par_seq::Pool

pub trait Pool {
    fn join<A, B, RA, RB>(&self, a: A, b: B) -> (RA, RB)
    where
        A: FnOnce() -> RA + Send,
        B: FnOnce() -> RB + Send,
        RA: Send,
        RB: Send
; }

Trait for the (possibly parallel) runner for a System.

Required methods

fn join<A, B, RA, RB>(&self, a: A, b: B) -> (RA, RB) where
    A: FnOnce() -> RA + Send,
    B: FnOnce() -> RB + Send,
    RA: Send,
    RB: Send

Should run the two functions (potentially in parallel) and return their results.

Loading content...

Implementors

impl Pool for SeqPool[src]

impl Pool for RayonPool[src]

Loading content...