/// Creates a new OneshotChannel in the given state
Creates a new OneshotChannel in the given state
Creates a new OneshotChannel in the given state
pub fn new() -> GenericOneshotChannel<MutexType, T> {
        GenericOneshotChannel {
            inner: Mutex::new(ChannelState::new()),
        }
    }
pub fn new ( ) -> GenericOneshotChannel < MutexType , T > { GenericOneshotChannel { inner : Mutex :: new ( ChannelState :: new ( ) ) , } }
Creates a new OneshotChannel in the given state
Creates a new OneshotChannel in the given state