Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed Jan 21, 2024
1 parent 0bdcc0d commit ac8c72f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions repl/src/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const p = new CancelAblePromise<void>((res) => {
res()
})
}, () => {
console.log("cancel2")
console.log("cancel1")
})

p.then(() => {
Expand All @@ -28,7 +28,9 @@ p.then(() => {

const p2 = p.then(async () => {
await delay(1000)
}, undefined, true)
}, undefined, () => {
p.cancel()
})



Expand Down

0 comments on commit ac8c72f

Please sign in to comment.