Worker threads message
This commit is contained in:
parent
67ec0d5430
commit
2f8801bae6
@ -27,6 +27,7 @@ function getWorker() {
|
|||||||
const available: any = [];
|
const available: any = [];
|
||||||
|
|
||||||
function initialize() {
|
function initialize() {
|
||||||
|
console.log(`Starting ${WORKERS} worker threads`);
|
||||||
for (let n = 0; n < WORKERS; n++) {
|
for (let n = 0; n < WORKERS; n++) {
|
||||||
getWorker().then((worker) => available.push(worker));
|
getWorker().then((worker) => available.push(worker));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user