EventInstance

class EventInstance<out P : JsTuple>(emitter: EventEmitter, type: EventType)(source)

Constructors

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

Functions

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