/// Creates a new wait group and returns the single reference to it.
///
/// # Examples
///
/// ```
/// use crossbeam_utils::sync::WaitGroup;
///
/// let wg = WaitGroup::new();
/// ```
Creates a new wait group and returns the single reference to it.
Creates a new wait group and returns the single reference to it .
pub fn new() -> WaitGroup {
        WaitGroup {
            inner: Arc::new(Inner {
                cvar: Condvar::new(),
                count: Mutex::new(1),
            }),
        }
    }
pub fn new ( ) -> WaitGroup { WaitGroup { inner : Arc :: new ( Inner { cvar : Condvar :: new ( ) , count : Mutex :: new ( 1 ) , } ) , } }
Creates a new wait group and returns the single reference to it.
Creates a new wait group and returns the single reference to it .
examples
```
use crossbeam_utils::sync::WaitGroup.

let wg = WaitGroup::new();
```
` ` ` use crossbeam_utils :: sync :: WaitGroup . let wg = WaitGroup :: new () ; ` ` `