Kotlin Wrappers API Reference
Toggle table of contents
web
Target filter
web
Switch theme
Search in API
kotlin-node
/
node.events
/
EventInstance
Event
Instance
class
EventInstance
<
out
P
:
ERROR CLASS: Symbol not found for Tuple
>
(
emitter
:
EventEmitter
,
type
:
EventType
)
:
<ERROR CLASS> ERROR CLASS: Symbol not found for Flow<P>
(
source
)
Members
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
collect
Link copied to clipboard
open
suspend override
fun
collect
(
collector
:
ERROR CLASS: Symbol not found for FlowCollector<P>
)
emit
Link copied to clipboard
fun
emit
(
payload
:
P
)