[][src]Struct kwait::Group

pub struct Group { /* fields omitted */ }

Group allows to start a group of threads and wait for their completion.

Implementations

impl Group[src]

pub fn new() -> Group[src]

pub fn wait(self)[src]

pub fn start_with_channel<F>(&self, stop_ch: Receiver<bool>, f: F) where
    F: Fn(Receiver<bool>) + 'static + Send + Sync
[src]

start_with_channel starts f in a new thread in the group. stop_ch is passed to f as an argument. f should stop when stop_ch is available.

pub fn start<F>(&self, f: F) where
    F: Fn() + Send + 'static, 
[src]

start starts f in a new thread in the group.

Auto Trait Implementations

impl !RefUnwindSafe for Group

impl Send for Group

impl Sync for Group

impl Unpin for Group

impl !UnwindSafe for Group

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,