/// Attempt to receive a value of the channel without waiting.
Attempt to receive a value of the channel without waiting.
Attempt to receive a value of the channel without waiting .
pub fn try_receive(&self) -> Result<T, TryReceiveError> {
        let result = { self.inner.lock().try_receive() };
        match result {
            Ok((val, waker)) => {
                if let Some(waker) = waker {
                    waker.wake();
                }
                Ok(val)
            }
            Err(e) => Err(e),
        }
    }
pub fn try_receive ( & self ) -> Result < T , TryReceiveError > { let result = { self . inner . lock ( ) . try_receive ( ) } ; match result { Ok ( ( val , waker ) ) => { if let Some ( waker ) = waker { waker . wake ( ) ; } Ok ( val ) } Err ( e ) => Err ( e ) , } }
Attempt to receive a value of the channel without waiting.
Attempt to receive a value of the channel without waiting .
&self