Module
Node.Events.EventEmitter
- Package
- purescript-idiomatic-node-events
- Repository
- bklaric/purescript-idiomatic-node-events
#EventEmitter Source
class EventEmitter emitter where
Members
on :: forall listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter
once :: forall listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter
prependListener :: forall listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter
prependOnceListener :: forall listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter
removeListener :: forall listener. Event emitter listener -> EventListener listener -> emitter -> Effect emitter
removeAllListeners :: forall listener. Event emitter listener -> emitter -> Effect emitter
emit :: forall listener. Event emitter listener -> Array Foreign -> emitter -> Effect Boolean
listeners :: forall listener. Event emitter listener -> emitter -> Effect (Array (EventListener listener))
listenerCount :: forall listener. Event emitter listener -> emitter -> Effect Int
getMaxListeners :: emitter -> Effect Int
setMaxListeners :: Int -> emitter -> Effect emitter
eventNames :: emitter -> Effect (Array String)
#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
#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
#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