- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 30 Apr 2015 08:08:55 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Message-ID: <whatwg/streams/pull/343/r29437654@github.com>
> + 1. Let _e_ be _reader_@[[ownerReadableByteStream]]@[[storedError]]. > + 1. Set _reader_@[[storedError]] to _e_. > + 1. Reject _reader_@[[closedPromise]] with _e_. > + 1. Repeat for each _readRequestPromise_ that is an element of _reader_@[[readRequests]], > + 1. Reject _readRequestPromise_ with _e_. > + 1. Otherwise, > + 1. Set _reader_@[[state]] to "closed". > + 1. Resolve _reader_@[[closedPromise]] with *undefined*. > + 1. Repeat for each _readRequestPromise_ that is an element of _reader_@[[readRequests]], > + 1. Resolve _readRequestPromise_ with CreateIterResultObject(*undefined*, *true*). > + 1. Set _reader_@[[readRequests]] to a new empty List. > + 1. Set _reader_@[[ownerReadableByteStream]]@[[reader]] to *undefined*. > + 1. Set _reader_@[[ownerReadableByteStream]] to *undefined*. > +</pre> > + > +<h4 id="tee-readable-byte-stream" aoid="TeeReadableByteStream">TeeReadableByteStream ( stream, shouldClone )</h4> Hmm, this is complicated. With the queues and such. Could you summarize for me how it works? It looks similar to TeeReadableStream but I am betting there are important differences. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/343/files#r29437654
Received on Thursday, 30 April 2015 15:09:22 UTC