Module

Graphics.Glapple.Data.Emitter

Package
purescript-glappleDEPRECATED
Repository
yukikurage/purescript-glapple

#Emitter Source

newtype Emitter :: Type -> (Type -> Type) -> Typenewtype Emitter event m

Constructors

#Priority Source

type Priority = Int

#addListener Source

addListener :: forall m event. MonadEffect m => Emitter event m -> Number -> (event -> (m Unit) -> m Unit) -> m (m Unit)

#addListener_ Source

addListener_ :: forall m event. MonadEffect m => Emitter event m -> Number -> (event -> m Unit) -> m (m Unit)

#emit Source

emit :: forall m event. MonadEffect m => MonadRec m => Emitter event m -> event -> m Unit

#newEmitter Source

newEmitter :: forall m event. MonadEffect m => m (Emitter event m)

#removeAllListener Source

removeAllListener :: forall event m. MonadEffect m => Emitter event m -> m Unit

#size Source

size :: forall event m. MonadEffect m => Emitter event m -> m Int