Skip to main content
Cluster.fork - cluster - Node documentation
method Cluster.fork

Usage in Deno

import { type Cluster } from "node:cluster";
Cluster.fork(env?: any): Worker

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