TVar package:unliftio

Shared memory locations that support atomic memory transactions.
Lifted version of mkWeakTVar
Mutate the contents of a TVar. N.B., this version is non-strict.
Strict version of modifyTVar.
Create a new TVar holding a value supplied
Lifted version of newTVarIO
Return the current value stored in a TVar.
Lifted version of readTVarIO
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.