Skip to main content
method Cluster.fork
Cluster.fork(env?: any): Worker
Deprecated

Spawn a new worker process.

This can only be called from the primary process.

Parameters

optional
env: any

Key/value pairs to add to worker process environment.

Return Type

Back to top