Fix syntax error in pqueue

This commit is contained in:
Talia 2023-09-19 17:38:53 +02:00
parent 939c564f03
commit c9da7b116d
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

View file

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