pub async fn close(&mut self) {
        self.closed_ch_tx.take();

        let mut endpoints = self.endpoints.lock().await;
        endpoints.clear();
    }
/// Close closes the Mux and all associated Endpoints.
Close closes the Mux and all associated Endpoints.
Close closes the Mux and all associated Endpoints .
pub async fn close(&mut self) {
        self.closed_ch_tx.take();
        let mut endpoints = self.endpoints.lock().await;
        endpoints.clear();
    }
pub async fn close ( & mut self ) { self . closed_ch_tx . take ( ) ; let mut endpoints = self . endpoints . lock ( ) . await ; endpoints . clear ( ) ; }
Close closes the Mux and all associated Endpoints.
Close closes the Mux and all associated Endpoints .
&mut self