Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
classy-prelude-conduit ClassyPrelude.Conduit Wrap the base monad in ReaderT Since 1.0.11
readBoundedChan :: MonadConc m => BoundedChan m a -> m aconcurrency Control.Concurrent.Classy.BoundedChan Read an element from the channel. If the channel is empty, this routine will block until it is able to read. Blockers wait in a fair FIFO queue.
readCRef :: MonadConc m => CRef m a -> m aconcurrency Control.Concurrent.Classy.CRef Read the current value stored in a reference.
readChan :: MonadConc m => Chan m a -> m aconcurrency Control.Concurrent.Classy.Chan Read the next value from the Chan.
readIORef :: MonadConc m => IORef m a -> m aconcurrency Control.Concurrent.Classy.IORef Read the current value stored in a reference.
readIORef ioref = readForCAS ioref >>= peekTicket
readMVar :: MonadConc m => MVar m a -> m aconcurrency Control.Concurrent.Classy.MVar Block until a value is present in the MVar, and then return it. This does not "remove" the value, multiple reads are possible.
readTBQueue :: MonadSTM stm => TBQueue stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TBQueue Read the next value from the TBQueue.
readTChan :: MonadSTM stm => TChan stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TChan Read the next value from the TChan.
readTMVar :: MonadSTM stm => TMVar stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TMVar Read from a TMVar without emptying, or retry if it is empty.
readTQueue :: MonadSTM stm => TQueue stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TQueue Read the next value from the TQueue.