Node.js
AbortSignal.any() and timeout(): Real Request Cancellation
Replace leaky Promise.race wrappers with AbortSignal.timeout() and AbortSignal.any() in TypeScript, separate TimeoutError, and avoid listener leaks.
Topic
A collection of essays to explore, one idea at a time.
Replace leaky Promise.race wrappers with AbortSignal.timeout() and AbortSignal.any() in TypeScript, separate TimeoutError, and avoid listener leaks.