newTVar -package:universum

Create a new TVar holding a value supplied
Create a new TVar containing the given value.
newTVar = newTVarN ""
IO version of newTVar. This is useful for creating top-level TVars using unsafePerformIO, because using atomically inside unsafePerformIO isn't possible.
Lifted version of newTVarIO
Lifted to MonadIO version of newTVarIO.
Create a new TVar containing the given value, but it is given a name which may be used to present more useful debugging information. If an empty name is given, a counter starting from 0 is used. If names conflict, successive TVars with the same name are given a numeric suffix, counting up from 1.
newTVarN _ = newTVar
Create a TVar. This may be implemented differently for speed.
newTVarConc = atomically . newTVar