- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 06 Apr 2017 06:29:44 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 6 April 2017 13:30:18 UTC
annevk commented on this pull request. > + readonly attribute boolean aborted; + + attribute EventHandler onabort; +}; +</pre> +<dl class=domintro> + <dt><code><var>signal</var> . </code>{{PromiseSignal/aborted}} + <dd>Returns true if this {{PromiseSignal}} has been aborted, and false otherwise. +</dl> + +Each {{PromiseSignal}} has an <dfn for=PromiseSignal>aborted flag</dfn> which is unset unless +otherwise specified. + +Each {{PromiseSignal}} has an <dfn for=PromiseSignal>abort steps</dfn> algorithm which is +executed when its [=PromiseSignal/aborted flag=] is set. Unless otherwise specified, this +algorithm is a no-op. But maybe you're right that we should design this more so that it even works for all scenarios when not subclassed. I do think that whatever this get passed to needs to be able to hook into it, since we don't really have specification-only event listeners (I think that would be a bigger thing to add). -- 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/434#discussion_r110160933
Received on Thursday, 6 April 2017 13:30:18 UTC