Module

Node.Events.EventEmitter

Package
purescript-idiomatic-node-events
Repository
bklaric/purescript-idiomatic-node-events

#EventEmitter Source

class EventEmitter emitter  where

Members

#defaultOn Source

defaultOn :: forall emitter listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter

#defaultOnce Source

defaultOnce :: forall emitter listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter

#defaultPrependListener Source

defaultPrependListener :: forall emitter listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter

#defaultPrependOnceListener Source

defaultPrependOnceListener :: forall emitter listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter

#defaultRemoveListener Source

defaultRemoveListener :: forall emitter listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter

#defaultRemoveAllListeners Source

defaultRemoveAllListeners :: forall emitter listener. Event emitter listener -> emitter -> Effect emitter

#defaultEmit Source

defaultEmit :: forall emitter listener. Event emitter listener -> Array Foreign -> emitter -> Effect Boolean

#defaultListeners Source

defaultListeners :: forall emitter listener. Event emitter listener -> emitter -> Effect (Array (EventListener listener))

#defaultListenerCount Source

defaultListenerCount :: forall emitter listener. Event emitter listener -> emitter -> Effect Int

#defaultGetMaxListeners Source

defaultGetMaxListeners :: forall emitter. emitter -> Effect Int

#defaultSetMaxListeners Source

defaultSetMaxListeners :: forall emitter. Int -> emitter -> Effect emitter

#defaultEventNames Source

defaultEventNames :: forall emitter. emitter -> Effect (Array String)

#on' Source

on' :: forall emitter listener. EventEmitter emitter => Event emitter listener -> listener -> emitter -> Effect emitter

#once' Source

once' :: forall emitter listener. EventEmitter emitter => Event emitter listener -> listener -> emitter -> Effect emitter

#prependListener' Source

prependListener' :: forall emitter listener. EventEmitter emitter => Event emitter listener -> listener -> emitter -> Effect emitter

#prependOnceListener' Source

prependOnceListener' :: forall emitter listener. EventEmitter emitter => Event emitter listener -> listener -> emitter -> Effect emitter

#removeAllListeners_ Source

removeAllListeners_ :: forall emitter. EventEmitter emitter => emitter -> Effect emitter