Fix syntax error in pqueue
This commit is contained in:
parent
939c564f03
commit
c9da7b116d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue