Worker.prototype.process - Node documentation
property Worker.prototype.process

Usage in Deno

import { Worker } from "node:cluster";

All workers are created using child_process.fork(), the returned object from this function is stored as .process. In a worker, the global process is stored.

See: Child Process module.

Workers will call process.exit(0) if the 'disconnect' event occurs on process and .exitedAfterDisconnect is not true. This protects against accidental disconnection.

Type

child.ChildProcess