readIORef -package:dejafu
Read the value of an
IORef.
Beware that the CPU executing a thread can reorder reads or writes to
independent locations. See
Data.IORef#memmodel for more
details.
Lifted version of
readIORef.
>>> ref <- newIORef 42
>>> readIORef ref
42
Read the value of an
IORef
Read a value from an
IORef.
Pre-release
Deprecated: Use readIORef from MutByteArray module.
Read the current value stored in a reference.
readIORef ioref = readForCAS ioref >>= peekTicket