pub async fn wait_change(&self) -> bool {
        let val = self.inner.load(Ordering::Acquire);
        if val {
            self.notify_false.notified().await;
        } else {
            self.notify_true.notified().await;
        }
        !val
    }
/// Returns the new value when it has changed.
Returns the new value when it has changed.
Returns the new value when it has changed .
pub async fn wait_change(&self) -> bool {
        let val = self.inner.load(Ordering::Acquire);
        if val {
            self.notify_false.notified().await;
        } else {
            self.notify_true.notified().await;
        }
        !val
    }
pub async fn wait_change ( & self ) -> bool { let val = self . inner . load ( Ordering :: Acquire ) ; if val { self . notify_false . notified ( ) . await ; } else { self . notify_true . notified ( ) . await ; } ! val }
Returns the new value when it has changed.
Returns the new value when it has changed .
&self
&self