Struct shred::Par
[−]
[src]
pub struct Par<H, T> { /* fields omitted */ }
Runs two tasks in parallel.
These two tasks are called head
and tail
in the following documentation.
Methods
impl<H> Par<H, Nil>
[src]
pub fn new(head: H) -> Self
[src]
Creates a new Par
struct, with the tail being a no-op.
pub fn with<T>(self, sys: T) -> Par<Par<H, T>, Nil> where
H: for<'a> RunWithPool<'a>,
T: for<'a> RunWithPool<'a>,
[src]
H: for<'a> RunWithPool<'a>,
T: for<'a> RunWithPool<'a>,
Adds sys
as the second job and returns a new Par
struct
with the previous struct as head and a no-op tail.