UNPKG

@cloud-copilot/job

Version:

Async job runners with defined worker pools

10 lines 269 B
import { cpus } from '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. */ export function numberOfCpus() { return cpus().length || 1; } //# sourceMappingURL=util.js.map