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
At the moment I'm testing my project and I run into following error
Exception in PromiseRejectCallback:
file:///MY_PROJECT/node_modules/p-queue/dist/index.js:202
}, options);
^
RangeError: Maximum call stack size exceeded
I add 10,000 tasks and after some seconds I abort all 10,000 tasks and remove them. Then I get the RangeError.
If I look into the code, could it be that there is a recursion (in the case when many tasks have been aborted)?
If I see it correctly, then #next() calls tryToStartAnother() and tryToStartAnother() calls job() and job() has a try-catch block which calls #next() in the finally block.
At the moment I'm testing my project and I run into following error
I add 10,000 tasks and after some seconds I abort all 10,000 tasks and remove them. Then I get the
RangeError
.If I look into the code, could it be that there is a recursion (in the case when many tasks have been aborted)?
If I see it correctly, then
#next()
callstryToStartAnother()
andtryToStartAnother()
callsjob()
andjob()
has a try-catch block which calls#next()
in the finally block.Following code demonstrates my issue
The text was updated successfully, but these errors were encountered: