serokell-util-0.10.0: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.Util.Concurrent

Description

Convenient versions of some functions from Concurrent

Synopsis

Documentation

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?