/// Attempts to gracefully shutdown the `Pingserver` by sending a shutdown
/// to each thread and then waiting to join those threads.
///
/// Will terminate ungracefully if it encounters an error in sending a
/// shutdown to any of the threads.
///
/// This function will block until all threads have terminated.
Attempts to gracefully shutdown the `Pingserver` by sending a shutdown
to each thread and then waiting to join those threads.

Will terminate ungracefully if it encounters an error in sending a
shutdown to any of the threads.

This function will block until all threads have terminated.
Attempts to gracefully shutdown the ` Pingserver ` by sending a shutdown to each thread and then waiting to join those threads . Will terminate ungracefully if it encounters an error in sending a shutdown to any of the threads . This function will block until all threads have terminated .
pub fn shutdown(self) {
        // send shutdown message to each thread
        if self.server_message_sender.send(Message::Shutdown).is_err() {
            fatal!("error sending shutdown message to server thread");
        }
        if self.worker_message_sender.send(Message::Shutdown).is_err() {
            fatal!("error sending shutdown message to worker thread");
        }
        if self.admin_message_sender.send(Message::Shutdown).is_err() {
            fatal!("error sending shutdown message to admin thread");
        }
        // wait and join all threads
        self.wait()
    }
pub fn shutdown ( self ) { // send shutdown message to each thread if self . server_message_sender . send ( Message :: Shutdown ) . is_err ( ) { fatal ! ( " " ) ; } if self . worker_message_sender . send ( Message :: Shutdown ) . is_err ( ) { fatal ! ( " " ) ; } if self . admin_message_sender . send ( Message :: Shutdown ) . is_err ( ) { fatal ! ( " " ) ; } // wait and join all threads self . wait ( ) }
Attempts to gracefully shutdown the `Pingserver` by sending a shutdown
to each thread and then waiting to join those threads.
Attempts to gracefully shutdown the ` Pingserver ` by sending a shutdown to each thread and then waiting to join those threads .
self