Re: [whatwg/dom] Introduce AbortSignal.timeout() (PR #1032)

@annevk commented on this pull request.

I like it! And yeah, Mozilla can be considered supportive.

> +<ol>
+ <li><p>Let <var>signal</var> be a new {{AbortSignal}} object.
+
+ <li><p>Let <var>global</var> be <var>signal</var>'s <a>relevant global object</a>.
+
+ <li>
+  <p><a>Wait for a timeout</a> given <var>global</var>, "<code>AbortSignal-timeout</code>",
+  <var>milliseconds</var>, and the following step:</p>
+
+  <ol>
+   <li><p><a>Queue a global task</a> on the <a>timer task source</a> given <var>global</var> to
+   <a for=AbortSignal>signal abort</a> given <var>signal</var> and a new
+   "{{TimeoutError!!exception}}" {{DOMException}}.
+  </ol>
+
+ <li>Return <var>signal</var>.

```suggestion
 <li><p>Return <var>signal</var>.
```

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

Received on Saturday, 20 November 2021 08:50:21 UTC