transient-0.1.0.2: A monad for extensible effects and primitives for unrestricted composability of applications

Safe HaskellNone
LanguageHaskell2010

Transient.EVars

Contents

Synopsis

Documentation

newtype EVars Source

Constructors

EVars (IORef (Map Int [EventF])) 

Instances

data EVar a Source

Constructors

EVar Int (IORef (Maybe a)) 

Evars are event vars. writeEVar trigger the execution of all the continuations associated to the readEVar of this variable

writeEVar :: EVar t -> t -> TransIO () Source