Skip to content

Commit

Permalink
wantToCancelUntil also resets
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed Jan 20, 2024
1 parent 104f4e0 commit 954ae86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/moreProms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export function execQueue(defaultOptions = {
while(queue.length !== 0) {
const ob = curOb = queue.shift()!
const { p, f, skipAble, cancelVal } = ob
const wantToCancelThis = wantToCancelUntil !== undefined && wantToCancelUntil !== ob
if (wantToCancelUntil === ob) wantToCancelUntil = undefined
const wantToCancelThis = wantToCancelUntil !== undefined

if (!(wantToCancelThis && skipAble)) {
const prom = curFP = f()
curCancelVal = cancelVal
Expand Down

0 comments on commit 954ae86

Please sign in to comment.