TVar -package:base
Shared memory locations that support atomic memory transactions.
Shared memory locations that support atomic memory transactions.
Transactional variables, for use with
MonadSTM.
Deviations: There is no
Eq instance for
MonadSTM the
TVar type. Furthermore, the
newTVarIO and
mkWeakTVar functions are not provided.
Every TVar has a unique identifier.
Get the TVars affected by a ThreadAction.
Get the TVars a transaction read from.
Get the TVars a transaction wrote to (or would have, if it
didn't retry).
Make a
Weak pointer to a
TVar, using the second argument
as a finalizer to run when
TVar is garbage-collected
Mutate the contents of a
TVar.
N.B., this version is
non-strict.
Create a new
TVar holding a value supplied