Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
readTVar :: MonadSTM stm => TVar stm a -> stm aconcurrency Control.Concurrent.Classy.STM.TVar Return the current value stored in a TVar.
readTVarConc :: MonadConc m => TVar (STM m) a -> m aconcurrency Control.Concurrent.Classy.STM.TVar Read the current value stored in a TVar. This may be implemented differently for speed.
readTVarConc = atomically . readTVar
readForCAS :: MonadConc m => IORef m a -> m (Ticket m a)concurrency Control.Monad.Conc.Class Read the current value stored in a reference, returning a Ticket, for use in future compare-and-swap operations.