Struct fp_rust::sync::CountDownLatch [−][src]
pub struct CountDownLatch { /* fields omitted */ }
CountDownLatch
implements a latch with a value(> 0),
waiting for the value counted down until <= 0
(the countdown action would be in other threads).
Remarks
It's inspired by CountDownLatch
in Java
, and easily use it on async scenaios.
``
Methods
impl CountDownLatch
[src]
impl CountDownLatch
Trait Implementations
impl Debug for CountDownLatch
[src]
impl Debug for CountDownLatch
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CountDownLatch
[src]
impl Clone for CountDownLatch
fn clone(&self) -> CountDownLatch
[src]
fn clone(&self) -> CountDownLatch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for CountDownLatch
impl Send for CountDownLatch
impl Sync for CountDownLatch
impl Sync for CountDownLatch