readTChan

readTChan :: TChan a -> STM a
stm Control.Concurrent.STM.TChan
Read the next value from the TChan.
tryReadTChan :: TChan a -> STM (Maybe a)
stm Control.Concurrent.STM.TChan
A version of readTChan which does not retry. Instead it returns Nothing if no value is available.