pub async fn async_recv<M: ChannelMessage>(
        &mut self,
    ) -> Result<M, MessageChannelsDisconnected> {
        self.try_async_recv().await.map_err(|e| match e {
            TryAsyncMessageError::Unregistered(e) => panic!("{}", e),
            TryAsyncMessageError::Disconnected(e) => e,
        })
    }
/// Any async version of `MessageChannels::receive`, receives an incoming message on the channel
/// associated with its message type but waits if there is no message available.
///
/// This method is cancel safe, it will never partially read a message or drop received
/// messages.
///
/// # Panics
/// Panics if this message type is not registered.
Any async version of `MessageChannels::receive`, receives an incoming message on the channel
associated with its message type but waits if there is no message available.

This method is cancel safe, it will never partially read a message or drop received
messages.
Any async version of ` MessageChannels :: receive ` receives an incoming message on the channel associated with its message type but waits if there is no message available . This method is cancel safe it will never partially read a message or drop received messages .
pub async fn async_recv<M: ChannelMessage>(
        &mut self,
    ) -> Result<M, MessageChannelsDisconnected> {
        self.try_async_recv().await.map_err(|e| match e {
            TryAsyncMessageError::Unregistered(e) => panic!("{}", e),
            TryAsyncMessageError::Disconnected(e) => e,
        })
    }
pub async fn async_recv < M : ChannelMessage > ( & mut self , ) -> Result < M , MessageChannelsDisconnected > { self . try_async_recv ( ) . await . map_err ( | e | match e { TryAsyncMessageError :: Unregistered ( e ) => panic ! ( " " e ) , TryAsyncMessageError :: Disconnected ( e ) => e , } ) }
Any async version of `MessageChannels::receive`, receives an incoming message on the channel
associated with its message type but waits if there is no message available.
Any async version of ` MessageChannels :: receive ` receives an incoming message on the channel associated with its message type but waits if there is no message available .
&mut self
&mut self
panics
Panics if this message type is not registered.
Panics if this message type is not registered .