- From: Jake Archibald <notifications@github.com>
- Date: Wed, 07 Jun 2017 08:59:51 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 June 2017 16:00:23 UTC
jakearchibald commented on this pull request. > + {{DOMException}}. + <li>Reject immediately if the {{AbortSignal}}'s [=AbortSignal/aborted flag=] is already set, + otherwise: + <li>Use the [=AbortSignal/abort algorithms=] mechanism to observe changes to the {{AbortSignal}} + object and do so in a manner that does not lead to clashes with other observers. +</ul> + +<div class=example id=aborting-ongoing-activities-spec-example> + The steps for a promise-returning method <code>doAmazingness(options)</code> could be as follows: + + <ol> + <li>Let |p| be [=a new promise=]. + <li>If |options|' <code>signal</code> member is present, then: + <ol> + <li>If |options|' <code>signal</code>'s [=AbortSignal/aborted flag=] is set, throw an + "{{AbortError}}" {{DOMException}}. Is it worth adding a note here to point out this will be turned into a rejection, or is that assumed knowledge? -- 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/437#pullrequestreview-42650826
Received on Wednesday, 7 June 2017 16:00:23 UTC