pub struct WaitGroup { /* private fields */ }
Expand description
A synchronization primitive for awaiting a set of actions.
Adding new jobs is done with submit
, jobs are completed with complete
,
and any thread may wait for all jobs to be complete
d with join
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WaitGroup
impl RefUnwindSafe for WaitGroup
impl Send for WaitGroup
impl Sync for WaitGroup
impl Unpin for WaitGroup
impl UnwindSafe for WaitGroup
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