TVar package:base-prelude
Shared memory locations that support atomic memory transactions.
Create a new
TVar holding a value supplied
Return the current value stored in a
TVar.
Return the current value stored in a
TVar. This is equivalent
to
readTVarIO = atomically . readTVar
but works much faster, because it doesn't perform a complete
transaction, it just reads the current value of the
TVar.
Write the supplied value into a
TVar.