Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
12345678910111213141516171819202122// node:cluster, refused: forking shares listening sockets across OS processes, and a// page is always one process, so it is always primary, alone, with no workers to fork.import { refused, refusedClass } from "./refuse";
const WHY = "cluster forks node processes that share server handles";
export const cluster = { isMaster: true, // deprecated alias of isPrimary isPrimary: true, isWorker: false, schedulingPolicy: 2, // SCHED_RR, Node's own default off Windows SCHED_NONE: 1, SCHED_RR: 2, settings: {}, workers: {}, Worker: refusedClass("cluster", "Worker", WHY), fork: refused("cluster", "fork", WHY), disconnect: refused("cluster", "disconnect", WHY), setupMaster: refused("cluster", "setupMaster", WHY), // deprecated alias of setupPrimary setupPrimary: refused("cluster", "setupPrimary", WHY),};