- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 15 May 2017 15:40:52 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/437/review/38252412@github.com>
domenic approved this pull request. LGTM with nits. Let me try applying it to streams. > + [SameObject] readonly attribute AbortSignal signal; + + void abort(); +};</pre> + +<dl class=domintro> + <dt><code><var>controller</var> = new <a constructor lt="AbortController()">AbortController</a>()</code> + <dd>Returns a new <var>controller</var> whose {{AbortController/signal}} is set to a newly + created {{AbortSignal}} object. + + <dt><code><var>controller</var> . </code>{{AbortController/signal}} + <dd>Returns the {{AbortSignal}} object associated with this object. + + <dt><code><var>controller</var> . </code>{{AbortController/abort()}} + <dd>Invoking this method will set this object's {{AbortSignal}}'s [=AbortSignal/aborted flag=], + thereby signaling to any observers that the associated activity should be aborted. Nit: I think this would be clearer as "... set this AbortSingal's aborted flag, and signal to any observers..." (instead of using "thereby") > +<dl class=domintro> + <dt><code><var>controller</var> = new <a constructor lt="AbortController()">AbortController</a>()</code> + <dd>Returns a new <var>controller</var> whose {{AbortController/signal}} is set to a newly + created {{AbortSignal}} object. + + <dt><code><var>controller</var> . </code>{{AbortController/signal}} + <dd>Returns the {{AbortSignal}} object associated with this object. + + <dt><code><var>controller</var> . </code>{{AbortController/abort()}} + <dd>Invoking this method will set this object's {{AbortSignal}}'s [=AbortSignal/aborted flag=], + thereby signaling to any observers that the associated activity should be aborted. +</dl> + +<p>An {{AbortController}} object has an associated <dfn for=AbortController>signal</dfn> (an +{{AbortSignal}} object). When an {{AbortController}} object is created, its +<a for=AbortController>signal</a> must be set to a new {{AbortSignal}} object. Do you want to define the constructor more explicitly, perhaps? -- 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-38252412
Received on Monday, 15 May 2017 22:41:28 UTC