EventInstance

Constructors

Link copied to clipboard
constructor(emitter: EventEmitter, type: EventType<EventEmitter, P>)

Functions

Link copied to clipboard
fun <P : JsTuple> EventInstance<P>.addHandler(handler: (P) -> Unit): () -> Unit
Link copied to clipboard
fun <P : JsTuple> EventInstance<P>.asFlow(): Flow<P>
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