serokell-util-0.10.0: General-purpose functions by Serokell
Serokell.Util.Concurrent
Description
Convenient versions of some functions from Concurrent
Concurrent
modifyTVarS :: TVar s -> StateT s STM a -> STM a Source #
Atomically modifies given TVar, associating state of given StateT with TVar entry. TODO: maybe generalize to any container and monad? Define as operator?
TVar
StateT