Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
cluster
Dynamic module cluster
Index
Variables
isMaster
isWorker
settings
workers
Interfaces
ClusterSettings
Worker
Functions
addListener
disconnect
emit
fork
listeners
on
once
removeAllListener
removeListener
setMaxListeners
setupMaster
Variables
isMaster
:
boolean
isWorker
:
boolean
settings
:
ClusterSettings
workers
:
any
Functions
addListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
disconnect
(
callback
?:
Function
)
Parameters
callback?:
Function
optional
emit
(
event
:
string
, arg1
?:
any
, arg2
?:
any
)
Parameters
event:
string
arg1?:
any
optional
arg2?:
any
optional
fork
(
env
?:
any
)
:
Worker
Parameters
env?:
any
optional
Returns
Worker
listeners
(
event
:
string
)
:
Array<{ Function: any; }>
Parameters
event:
string
Returns
Array<{ Function: any; }>
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
removeAllListener
(
event
:
string
)
Parameters
event:
string
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
setMaxListeners
(
n
:
number
)
Parameters
n:
number
setupMaster
(
settings
?:
ClusterSettings
)
Parameters
settings?:
ClusterSettings
optional
Globals
assert
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
isMaster
isWorker
settings
workers
ClusterSettings
Worker
addListener
disconnect
emit
fork
listeners
on
once
removeAllListener
removeListener
setMaxListeners
setupMaster