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
worker
workers
Interfaces
ClusterSettings
Classes
Worker
Functions
addListener
disconnect
emit
fork
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
setupMaster
Variables
isMaster
:
boolean
isWorker
:
boolean
settings
:
ClusterSettings
worker
:
Worker
workers
:
Worker
[]
Functions
addListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
disconnect
(
callback
?:
Function
)
Parameters
callback?:
Function
optional
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
fork
(
env
?:
any
)
:
Worker
Parameters
env?:
any
optional
Returns
Worker
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
on
(
event
:
string
, listener
:
Function
)
:
any
Parameters
event:
string
listener:
Function
Returns
any
once
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
removeAllListeners
(
event
?:
string
)
Parameters
event?:
string
optional
removeListener
(
event
:
string
, listener
:
Function
)
Parameters
event:
string
listener:
Function
setMaxListeners
(
n
:
number
)
Parameters
n:
number
setupMaster
(
settings
?:
ClusterSettings
)
Parameters
settings?:
ClusterSettings
optional
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
addListener
disconnect
emit
fork
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
setupMaster