UNPKG

isoconcurrency

Version:

An isomorphic way to get the number of logical cores available.

5 lines (4 loc) 120 B
/* MAIN */ const concurrency = globalThis.navigator?.hardwareConcurrency || 1; /* EXPORT */ export default concurrency;