Module

SimpleEmitter

Package
purescript-simple-emitter
Repository
oreshinya/purescript-simple-emitter

#Emitter Source

newtype Emitter e k

#createEmitter Source

createEmitter :: forall k e. Eff (ref :: REF | e) (Emitter (ref :: REF | e) k)

#subscribe Source

subscribe :: forall k e. Ord k => k -> Eff (ref :: REF | e) Unit -> Emitter (ref :: REF | e) k -> Eff (ref :: REF | e) Unit

#unsubscribe Source

unsubscribe :: forall k e. Ord k => k -> Emitter (ref :: REF | e) k -> Eff (ref :: REF | e) Unit

#emit Source

emit :: forall k e. Ord k => k -> Emitter (ref :: REF | e) k -> Eff (ref :: REF | e) Unit
Modules
SimpleEmitter