pub fn stop(&self) {
        if !self.stopped.get() {
            info!("stopping supervisor");
            self.stopped.set(true);
            let (sender, receiver) = bounded(1);
            let _ = self.sender.send(SupervisorCmd::Stop(sender));
            let _ = receiver.recv_timeout(Duration::from_secs(5));
        }
    }
/**
       Explicitly stop the running supervisor. This is useful in tests where
       the supervisor has to be stopped and restarted explicitly.

       Note that after stopping the supervisor, the only way to restart it
       is by respawning a new supervisor using [`spawn_supervisor`].
    */
Explicitly stop the running supervisor. This is useful in tests where
the supervisor has to be stopped and restarted explicitly.

Note that after stopping the supervisor, the only way to restart it
is by respawning a new supervisor using [`spawn_supervisor`].
Explicitly stop the running supervisor . This is useful in tests where the supervisor has to be stopped and restarted explicitly . Note that after stopping the supervisor the only way to restart it is by respawning a new supervisor using [ ` spawn_supervisor ` ] .
pub fn stop(&self) {
        if !self.stopped.get() {
            info!("stopping supervisor");
            self.stopped.set(true);
            let (sender, receiver) = bounded(1);
            let _ = self.sender.send(SupervisorCmd::Stop(sender));
            let _ = receiver.recv_timeout(Duration::from_secs(5));
        }
    }
pub fn stop ( & self ) { if ! self . stopped . get ( ) { info ! ( " " ) ; self . stopped . set ( true ) ; let ( sender , receiver ) = bounded ( 1 ) ; let _ = self . sender . send ( SupervisorCmd :: Stop ( sender ) ) ; let _ = receiver . recv_timeout ( Duration :: from_secs ( 5 ) ) ; } }
Explicitly stop the running supervisor.
Explicitly stop the running supervisor .
&self
&self