Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
cluster
Worker
Class Worker
Hierarchy
EventEmitter
Worker
Index
Properties
id
process
suicide
Methods
addListener
destroy
disconnect
emit
kill
listeners
on
once
removeAllListeners
removeListener
send
setMaxListeners
Properties
public
id
:
string
public
process
:
ChildProcess
public
suicide
:
boolean
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
destroy
(
signal
?:
string
)
Parameters
signal?:
string
optional
public
disconnect
(
)
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
kill
(
signal
?:
string
)
Parameters
signal?:
string
optional
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
public
on
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
once
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
Returns
EventEmitter
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
send
(
message
:
any
, sendHandle
?:
any
)
Parameters
message:
any
sendHandle?:
any
optional
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
pg
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
isMaster
isWorker
settings
worker
workers
ClusterSettings
Worker
id
process
suicide
addListener
destroy
disconnect
emit
kill
listeners
on
once
removeAllListeners
removeListener
send
setMaxListeners
addListener
disconnect
emit
fork
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
setupMaster