Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
tryReadMVar :: PrimMonad m => MVar (PrimState m) a -> m (Maybe a)primitive Data.Primitive.MVar A non-blocking version of readMVar. The tryReadMVar function returns immediately, with Nothing if the MVar was empty, or Just a if the MVar was full with contents a.
- It is single-wakeup instead of multiple-wakeup.
- In the presence of other threads calling putMVar, tryReadMVar may block.
- If another thread puts a value in the MVar in between the calls to tryTakeMVar and putMVar, that value may be overridden.
atomicReadInt :: PrimMonad m => PrimVar (PrimState m) Int -> m Intprimitive Data.Primitive.PrimVar Given a reference, atomically read an element.
-
async Control.Concurrent.Async No documentation available.
ExceptionInLinkedThread :: Async a -> SomeException -> ExceptionInLinkedThreadasync Control.Concurrent.Async No documentation available.
asyncThreadId :: Async a -> ThreadIdasync Control.Concurrent.Async -
async Control.Concurrent.Async.Internal No documentation available.
ExceptionInLinkedThread :: Async a -> SomeException -> ExceptionInLinkedThreadasync Control.Concurrent.Async.Internal No documentation available.
asyncThreadId :: Async a -> {-# UNPACK #-} !ThreadIdasync Control.Concurrent.Async.Internal -
ghc-prim GHC.Prim (In a non-concurrent implementation, this can be a singleton type, whose (unique) value is returned by myThreadId#. The other operations can be omitted.)
atomicReadIntArray# :: MutableByteArray# d -> Int# -> State# d -> (# State# d, Int# #)ghc-prim GHC.Prim Given an array and an offset in machine words, read an element. The index is assumed to be in bounds. Implies a full memory barrier. Warning: this can fail with an unchecked exception.