[−][src]Struct kwait::Group
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]
F: Fn(Receiver<bool>) + 'static + Send + Sync,
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]
F: Fn() + Send + 'static,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,