toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-node
/
node.childProcess
/
ChildProcess
/
once
once
fun
once
(
event
:
String
,
listener
:
Function
<
Unit
>
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.CLOSE
,
listener
:
(
code
:
Double
?
,
signal
:
Signals
?
)
->
Unit
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.DISCONNECT
,
listener
:
(
)
->
Unit
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.ERROR
,
listener
:
(
JsError
)
->
Unit
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.EXIT
,
listener
:
(
code
:
Double
?
,
signal
:
Signals
?
)
->
Unit
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.MESSAGE
,
listener
:
(
Serializable
,
SendHandle
)
->
Unit
)
(
source
)
fun
once
(
event
:
ChildProcessEvent.SPAWN
,
listener
:
(
)
->
Unit
)
(
source
)