- From: Jake Archibald <notifications@github.com>
- Date: Thu, 08 Jun 2017 06:27:45 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 8 June 2017 13:28:21 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}}. Fair enough. Will change. -- 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#discussion_r120886824
Received on Thursday, 8 June 2017 13:28:21 UTC