Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Control.Concurrent.STM.TChan.Typed
Documentation
newtype TChanRW (scope :: Scope) a Source #
Instances
ChanScoped TChanRW Source # | |
Defined in Control.Concurrent.Chan.Extra Methods readOnly :: forall (scope :: Scope) a. Readable scope => TChanRW scope a -> TChanRW 'Read a Source # writeOnly :: forall (scope :: Scope) a. Writable scope => TChanRW scope a -> TChanRW 'Write a Source # allowReading :: forall (scope :: Scope) a. Writable scope => TChanRW scope a -> TChanRW 'ReadWrite a Source # allowWriting :: forall (scope :: Scope) a. Readable scope => TChanRW scope a -> TChanRW 'ReadWrite a Source # | |
ChanExtra (TChanRW 'Write) (TChanRW 'Read) Source # | |
Defined in Control.Concurrent.Chan.Extra Methods debounceStatic :: DiffNanosec -> TChanRW 'Read a -> IO (TChanRW 'Write a, Async ()) Source # throttleStatic :: DiffNanosec -> TChanRW 'Read a -> IO (TChanRW 'Write a, Async ()) Source # intersperseStatic :: DiffNanosec -> IO a -> TChanRW 'Read a -> IO (TChanRW 'Write a, Async (), Async ()) Source # |
writeTChanRW :: forall (scope :: Scope) a. Writable scope => TChanRW scope a -> a -> STM () Source #
unGetTChanRW :: forall (scope :: Scope) a. Writable scope => TChanRW scope a -> a -> STM () Source #
tryReadTChanRW :: forall (scope :: Scope) a. Readable scope => TChanRW scope a -> STM (Maybe a) Source #
tryPeekTChanRW :: forall (scope :: Scope) a. Readable scope => TChanRW scope a -> STM (Maybe a) Source #