pub async fn wait_until_initialized(&self) {
        // First, register for the notification
        // so that we don't miss it
        let notified = self.pool_updated_notify.notified();

        if let MaybePoolConnections::Initializing = **self.conns.load() {
            // If the pool is not initialized yet, wait until we get a notification
            notified.await;
        }
    }
// Waits until the pool becomes initialized.
// The pool is considered initialized either if the first connection has been
// established or after first filling ends, whichever comes first.
Waits until the pool becomes initialized.
The pool is considered initialized either if the first connection has been
established or after first filling ends, whichever comes first.
Waits until the pool becomes initialized . The pool is considered initialized either if the first connection has been established or after first filling ends whichever comes first .
pub async fn wait_until_initialized(&self) {
        // First, register for the notification
        // so that we don't miss it
        let notified = self.pool_updated_notify.notified();
        if let MaybePoolConnections::Initializing = **self.conns.load() {
            // If the pool is not initialized yet, wait until we get a notification
            notified.await;
        }
    }
pub async fn wait_until_initialized ( & self ) { // First, register for the notification // so that we don't miss it let notified = self . pool_updated_notify . notified ( ) ; if let MaybePoolConnections :: Initializing = * * self . conns . load ( ) { // If the pool is not initialized yet, wait until we get a notification notified . await ; } }
Waits until the pool becomes initialized.
Waits until the pool becomes initialized .
&self
&self