Skip to content

Commit

Permalink
Semaphore.acquire should resolve to symbol
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Nov 7, 2022
1 parent 1aaca9d commit 521524a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/semaphoreWithPriority.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class SemaphoreWithPriority {
if (this.#active.length < this.#capacity) {
this.#callNextJob()
}
return symbol
resolve(symbol)
})
}

Expand Down

0 comments on commit 521524a

Please sign in to comment.