Package-level declarations

Types

Link copied to clipboard
open external class EventEmitter

The EventEmitter class is defined and exposed by the node:events module:

Link copied to clipboard

Integrates EventEmitter with AsyncResource for EventEmitters that require manual async tracking. Specifically, all events emitted by instances of events.EventEmitterAsyncResource will run within its async context.

Link copied to clipboard
sealed external interface EventEmitterOptions
Link copied to clipboard
Link copied to clipboard
class EventInstance<out P : JsTuple>(emitter: EventEmitter, type: EventType)
Link copied to clipboard
sealed external interface EventListener
Link copied to clipboard
sealed external interface EventType
Link copied to clipboard
sealed external interface StaticEventEmitterOptions

Functions

Link copied to clipboard
fun <P : JsTuple> EventInstance<P>.asFlow(): Flow<P>
Link copied to clipboard
inline fun EventListener(noinline fn: () -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?, Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?, Any?, Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?, Any?, Any?, Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?, Any?, Any?, Any?, Any?) -> Unit): EventListener
inline fun EventListener(noinline fn: (Any?, Any?, Any?, Any?, Any?, Any?, Any?) -> Unit): EventListener
Link copied to clipboard
inline fun EventType(value: Symbol): EventType
inline fun EventType(value: String): EventType
Link copied to clipboard
suspend operator fun <P : JsTuple> EventInstance<P>.iterator(): SuspendableIterator<P>
Link copied to clipboard
suspend fun <P : JsTuple> EventInstance<P>.once(): P
Link copied to clipboard
suspend fun <P : JsTuple> EventInstance<P>.subscribe(handler: (P) -> Unit): Job