object EventEmitter
- Source
- eventsMod.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EventEmitter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSImport("events", "EventEmitter") @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val captureRejectionSymbol: Symbol
- Annotations
- @JSImport("events", "EventEmitter.captureRejectionSymbol") @native()
- def captureRejections: Boolean
Sets or gets the default captureRejection value for all emitters.
Sets or gets the default captureRejection value for all emitters.
- Annotations
- @JSImport("events", "EventEmitter.captureRejections") @native()
- def captureRejections_=(x: Boolean): Unit
- Annotations
- @inline()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def defaultMaxListeners: Double
- Annotations
- @JSImport("events", "EventEmitter.defaultMaxListeners") @native()
- def defaultMaxListeners_=(x: Double): Unit
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val errorMonitor: Symbol
This symbol shall be used to install a listener for only monitoring
'error'events.This symbol shall be used to install a listener for only monitoring
'error'events. Listeners installed using this symbol are called before the regular'error'listeners are called.Installing a listener using this symbol does not change the behavior once an
'error'event is emitted, therefore the process will still crash if no regular'error'listener is installed.- Annotations
- @JSImport("events", "EventEmitter.errorMonitor") @native()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getEventListener(emitter: global.NodeJS.EventEmitter, name: Symbol): Array[Function]
- Annotations
- @inline()
- def getEventListener(emitter: global.NodeJS.EventEmitter, name: java.lang.String): Array[Function]
- Annotations
- @inline()
- def getEventListener(emitter: DOMEventTarget, name: Symbol): Array[Function]
- Annotations
- @inline()
- def getEventListener(emitter: DOMEventTarget, name: java.lang.String): Array[Function]
Returns a list listener for a specific emitter event name.
Returns a list listener for a specific emitter event name.
- Annotations
- @inline()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listenerCount(emitter: global.NodeJS.EventEmitter, event: Symbol): Double
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def on(emitter: global.NodeJS.EventEmitter, event: java.lang.String, options: StaticEventEmitterOptions): AsyncIterableIterator[Any]
- Annotations
- @inline()
- def on(emitter: global.NodeJS.EventEmitter, event: java.lang.String): AsyncIterableIterator[Any]
- Annotations
- @inline()
- def once(emitter: NodeEventTarget, event: Symbol, options: StaticEventEmitterOptions): Promise[Array[Any]]
- Annotations
- @inline()
- def once(emitter: NodeEventTarget, event: Symbol): Promise[Array[Any]]
- Annotations
- @inline()
- def once(emitter: NodeEventTarget, event: java.lang.String, options: StaticEventEmitterOptions): Promise[Array[Any]]
- Annotations
- @inline()
- def once(emitter: NodeEventTarget, event: java.lang.String): Promise[Array[Any]]
- Annotations
- @inline()
- def once(emitter: DOMEventTarget, event: java.lang.String, options: StaticEventEmitterOptions): Promise[Array[Any]]
- Annotations
- @inline()
- def once(emitter: DOMEventTarget, event: java.lang.String): Promise[Array[Any]]
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def listenerCount(emitter: global.NodeJS.EventEmitter, event: java.lang.String): Double
- Annotations
- @inline()
- Deprecated
since v4.0.0