pub(crate) async fn done(&self) {
        let wg = WaitGroup::new();
        let mut w = Some(wg.worker());
        let _ = self
            .enqueue(Operation(Box::new(move || {
                let _d = w.take();
                Box::pin(async { false })
            })))
            .await;
        wg.wait().await;
    }
/// Done blocks until all currently enqueued operations are finished executing.
/// For more complex synchronization, use Enqueue directly.
Done blocks until all currently enqueued operations are finished executing.
For more complex synchronization, use Enqueue directly.
Done blocks until all currently enqueued operations are finished executing . For more complex synchronization use Enqueue directly .
pub(crate) async fn done(&self) {
        let wg = WaitGroup::new();
        let mut w = Some(wg.worker());
        let _ = self
            .enqueue(Operation(Box::new(move || {
                let _d = w.take();
                Box::pin(async { false })
            })))
            .await;
        wg.wait().await;
    }
pub ( crate ) async fn done ( & self ) { let wg = WaitGroup :: new ( ) ; let mut w = Some ( wg . worker ( ) ) ; let _ = self . enqueue ( Operation ( Box :: new ( move | | { let _d = w . take ( ) ; Box :: pin ( async { false } ) } ) ) ) . await ; wg . wait ( ) . await ; }
Done blocks until all currently enqueued operations are finished executing.
Done blocks until all currently enqueued operations are finished executing .
&self