pub async fn wait_for_stop(&self) {
        // We will only able to obtain the lock when context will release it.
        // However, we don't want to exit early in case this method is called
        // before actor is actually started, so we do it in the loop until
        // the channel is disconnected.
        while self.connected() {
            self.stop_handle.lock().await;
        }
    }
/// Creates a future that waits for actor to be fully stopped.
///
/// Note that this method does not request an actor to stop, it only waits for it
/// in order to stop actor, [`Address::stop`] should be used.
Creates a future that waits for actor to be fully stopped.
Note that this method does not request an actor to stop, it only waits for it
in order to stop actor, [`Address::stop`] should be used.
Creates a future that waits for actor to be fully stopped . Note that this method does not request an actor to stop it only waits for it in order to stop actor [ ` Address :: stop ` ] should be used .
pub async fn wait_for_stop(&self) {
        // We will only able to obtain the lock when context will release it.
        // However, we don't want to exit early in case this method is called
        // before actor is actually started, so we do it in the loop until
        // the channel is disconnected.
        while self.connected() {
            self.stop_handle.lock().await;
        }
    }
pub async fn wait_for_stop ( & self ) { // We will only able to obtain the lock when context will release it. // However, we don't want to exit early in case this method is called // before actor is actually started, so we do it in the loop until // the channel is disconnected. while self . connected ( ) { self . stop_handle . lock ( ) . await ; } }
Creates a future that waits for actor to be fully stopped.
Creates a future that waits for actor to be fully stopped .
&self
&self