Safe Haskell | None |
---|---|
Language | GHC2021 |
Polysemy.Conc.AtomicState
Description
Synopsis
- interpretAtomic :: forall a (r :: EffectRow). Member (Embed IO) r => a -> InterpreterFor (AtomicState a :: (Type -> Type) -> Type -> Type) r
Documentation
interpretAtomic :: forall a (r :: EffectRow). Member (Embed IO) r => a -> InterpreterFor (AtomicState a :: (Type -> Type) -> Type -> Type) r Source #
Convenience wrapper around runAtomicStateTVar
that creates a new TVar
.