You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'use strict';const{ StaticPool }=require("node-worker-threads-pool");asyncfunctiontask(i){require('sync-request');// Problem code causes the program to occasionally get stuckconsole.log(i);return}asyncfunctiontaskStaticPool(){constpool=newStaticPool({size: 5,task: task,});varexecArr=[];for(letj=0;j<100;j++){execArr.push(pool.exec(j));}awaitPromise.all(execArr);pool.destroy();}taskStaticPool()
The text was updated successfully, but these errors were encountered:
Run the code multiple times, the program will occasionally get stuck in require().
Operating environment:
node version: v10.16.3
node-worker-threads-pool: 1.4.3
sync-request: 6.1.0
The text was updated successfully, but these errors were encountered: