Re: [whatwg/dom] `AbortSignal.timeout()` may not abort past the timeout while performing synchronous work (Issue #1461)

juner left a comment (whatwg/dom#1461)

@nstepien
As per the current spec you quoted, the abort steps are queued as a task. This means that as long as synchronous code keeps running without yielding, the task never gets a chance to run, and `signal.aborted` remains `false`.

Are you suggesting that `AbortSignal.timeout()` should update the `aborted` flag from outside the task queue (e.g. in parallel), so that it can be observed even during long-running synchronous execution?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1461#issuecomment-4107536284
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1461/4107536284@github.com>

Received on Monday, 23 March 2026 02:07:34 UTC