pub struct WaitGroup {
pub total: Arc<AtomicU64>,
pub recv: Arc<Receiver<u64>>,
pub send: Arc<Sender<u64>>,
}
Expand description
WaitGroup impl use channel,it’s also both support sync and async
Fields§
§total: Arc<AtomicU64>
§recv: Arc<Receiver<u64>>
§send: Arc<Sender<u64>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
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