TVar package:unliftio
Shared memory locations that support atomic memory transactions.
Mutate the contents of a
TVar.
N.B., this version is
non-strict.
Create a new
TVar holding a value supplied
Return the current value stored in a
TVar.
Like
modifyTVar' but the function is a simple state transition
that can return a side value which is passed on as the result of the
STM.
Swap the contents of a
TVar for a new value.
Write the supplied value into a
TVar.