toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-node
/
node.events
/
EventInstance
Event
Instance
class
EventInstance
<
out
P
:
JsTuple
>
(
emitter
:
EventEmitter
,
type
:
EventType
<
EventEmitter
,
P
>
)
(
source
)
Members
Members & Extensions
Constructors
Event
Instance
Link copied to clipboard
constructor
(
emitter
:
EventEmitter
,
type
:
EventType
<
EventEmitter
,
P
>
)
Functions
add
Handler
Link copied to clipboard
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
addHandler
(
handler
:
(
P
)
->
Unit
)
:
(
)
->
Unit
as
Flow
Link copied to clipboard
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
asFlow
(
)
:
Flow
<
P
>
iterator
Link copied to clipboard
suspend operator
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
iterator
(
)
:
SuspendableIterator
<
P
>
once
Link copied to clipboard
suspend
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
once
(
)
:
P
subscribe
Link copied to clipboard
suspend
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
subscribe
(
handler
:
(
P
)
->
Unit
)
:
Job