UNPKG

@cloud-copilot/job

Version:

Async job runners with defined worker pools

13 lines 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.numberOfCpus = numberOfCpus; const os_1 = require("os"); /** * Get the number of CPU cores available on the system. * * @returns The number of CPU cores, or 1 if the system cannot determine it. */ function numberOfCpus() { return (0, os_1.cpus)().length || 1; } //# sourceMappingURL=util.js.map