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
)
(
source
)
Members
Members & Extensions
Constructors
Event
Instance
Link copied to clipboard
constructor
(
emitter
:
EventEmitter
,
type
:
EventType
)
Functions
add
Handler
Link copied to clipboard
fun
addHandler
(
handler
:
(
P
)
->
Unit
)
:
(
)
->
Unit
as
Flow
Link copied to clipboard
fun
<
P
:
JsTuple
>
EventInstance
<
P
>
.
asFlow
(
)
:
Flow
<
P
>
emit
Link copied to clipboard
fun
emit
(
payload
:
@
UnsafeVariance
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