tangled
alpha
login
or
join now
mary.my.id
/
boat
22
fork
atom
handy online tools for AT Protocol
boat.kelinci.net
atproto
bluesky
atcute
typescript
solidjs
22
fork
atom
overview
issues
pulls
pipelines
fix: incorrect max check
mary.my.id
10 months ago
3fd3c309
7db0edc7
verified
This commit was signed with the committer's
known signature
.
mary.my.id
SSH Key Fingerprint:
SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c=
+1
-1
1 changed file
expand all
collapse all
unified
split
src
lib
utils
promise-queue.ts
+1
-1
src/lib/utils/promise-queue.ts
···
36
36
#run() {
37
37
let task: QueueTask | undefined;
38
38
39
39
-
if (this.#current <= this.#max && (task = this.#queue.dequeue()) !== undefined) {
39
39
+
if (this.#current < this.#max && (task = this.#queue.dequeue()) !== undefined) {
40
40
const { deferred, fn } = task;
41
41
this.#current++;
42
42