Worker threads message

This commit is contained in:
Matt Low 2021-02-25 00:37:54 -07:00
parent 67ec0d5430
commit 2f8801bae6

View File

@ -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));
} }