chan-0.0.4.1: Some extra kit for Chans

Safe HaskellSafe
LanguageHaskell2010

Control.Concurrent.STM.TChan.Typed

Documentation

newtype TChanRW (scope :: Scope) a Source #

Constructors

TChanRW (TChan a) 

writeTChanRW :: Writable scope => TChanRW scope a -> a -> STM () Source #

unGetTChanRW :: Writable scope => TChanRW scope a -> a -> STM () Source #

isEmptyTChanRW :: Readable scope => TChanRW scope a -> STM Bool Source #

readTChanRW :: Readable scope => TChanRW scope a -> STM a Source #

tryReadTChanRW :: Readable scope => TChanRW scope a -> STM (Maybe a) Source #

peekTChanRW :: Readable scope => TChanRW scope a -> STM a Source #

tryPeekTChanRW :: Readable scope => TChanRW scope a -> STM (Maybe a) Source #

dupTChanRW :: Writable scopeIn => Readable scopeOut => TChanRW scopeIn a -> STM (TChanRW scopeOut a) Source #

cloneTChanRW :: Writable scopeIn => Readable scopeOut => TChanRW scopeIn a -> STM (TChanRW scopeOut a) Source #