From c9da7b116dc9bfe2f2ed39329a1247d13bec538d Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 19 Sep 2023 17:38:53 +0200 Subject: [PATCH] Fix syntax error in pqueue --- pqueue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pqueue.js b/pqueue.js index a9d750c..ac1c2e8 100644 --- a/pqueue.js +++ b/pqueue.js @@ -67,7 +67,7 @@ export default (parallel = 1) => { // Loop until there is nothing more to do: // a) Running queue is full and nothing can be resolved // b) Waiting queue is empty - const spin = () => { while pump() {} } + const spin = () => { while (pump()) {} } return promise => { waiting.push(promise)