- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 30 Aug 2018 17:13:01 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 30 August 2018 17:13:25 UTC
domenic commented on this pull request.
> + 1. Let _iterator_ be ! ObjectCreate(`<a idl>ReadableStreamDefaultReaderAsyncIteratorPrototype</a>`).
+ 1. Set _iterator_.[[asyncIteratorReader]] to *this*.
+ 1. Set _iterator_.[[preventCancel]] to ! ToBoolean(_preventCancel_).
+ 1. Return _iterator_.
+</emu-alg>
+
+<h5 id="default-reader-@@asynciterator" for="ReadableStreamDefaultReader">[@@asyncIterator]()</h5>
+
+<p class="note">
+ The <code>@@asyncIterator</code> method is an alias of {{ReadableStreamDefaultReader/getIterator()}}.
+</p>
+
+The initial value of the <code>@@asyncIterator</code> method is the same function object as the initial value of the
+{{ReadableStreamDefaultReader/getIterator()}} method.
+
+<h3 id="default-reader-asynciterator-prototype" interface
As discussed in IRC we get it for free by inheriting from %AsyncIteratorPrototype%.
--
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/streams/pull/950#discussion_r214110771
Received on Thursday, 30 August 2018 17:13:25 UTC