Re: [whatwg/dom] Add abortSignal.addAbortCallback (PR #1425)

@Jamesernator commented on this pull request.



> +<div algorithm>
+<p>The <dfn method for=AbortSignal><code>addAbortCallback(<var>callback</var>)</code></dfn> method steps are:
+
+ <ol>
+  <li><p>If <a>this</a> is [=AbortSignal/aborted=], then:
+   <ol>
+    <li><p><a spec=webidl>invoke</a> <var>callback</var> with « », and "<code>report</code>".
+
+    <li><p>Return.
+   </ol>
+
+
+  <li>
+   <p>[=AbortSignal/Add|Add the following abort steps=] to [=this=]:</p>
+   <ol>
+    <li><p><a spec=webidl>invoke</a> <var>callback</var> with « », and "<code>report</code>".

The abort algorithms list is [cleared when abort signals are run](https://dom.spec.whatwg.org/#run-the-abort-steps).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1425#discussion_r2600324281
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1425/review/3554288705@github.com>

Received on Monday, 8 December 2025 22:15:30 UTC