Skip to content
Commit Detail

Commit d73aa28

Author
Kenton Varda <kenton@cloudflare.com> 2025-05-17 15:48:48 -0500
Parents
38acd93
Tree
0296bd6
Refactor: Always call `IoContext::abort()` when aborting.

Prior to this, `abort()` was just one one way of fulfilling the abort promise, but other ways were joined into the promise in the constructor. Confusingly, this meant that `abortException` was not set correctly when aborting for any of those other reasons.

Now the constructor calls `abortWhen()` to wait on each of those promises that were previously joined in. When any promise passed to `abortWhen()` eventually rejects, `abort()` is called.

Files changed

2 files changed~2 modified