UNPKG
@baseplate-dev/sync
Version:
latest (0.5.1)
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
Library for syncing Baseplate descriptions
www.baseplate.dev
halfdomelabs/baseplate
@baseplate-dev/sync
/
dist
/
utils
/
concurrency.js
11 lines
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
os
from
'node:os'
;
/** * Get the concurrency limit for generation * *
@returns
The concurrency limit */
export
function
getGenerationConcurrencyLimit
(
) {
const
cpus = os.
cpus
().
length
;
return
Math
.
max
(cpus *
2
,
10
); }
//# sourceMappingURL=concurrency.js.map