- From: Takeshi Yoshino <notifications@github.com>
- Date: Mon, 24 Oct 2016 03:49:03 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Message-ID: <whatwg/streams/pull/512/review/5424194@github.com>
tyoshino commented on this pull request. > + discretion. + 1. Otherwise, let _reader_ be ! AcquireReadableStreamDefaultReader(*this*). + 1. Let _writer_ be ! AcquireWritableStreamDefaultWriter(_dest_). + 1. Let _promise_ be a new promise. + 1. Let _shuttingDown_ be *false*. + 1. <a>In parallel</a>, using _reader_ and _writer_, read all <a>chunks</a> from *this* and write them to _dest_. Due + to the locking provided by the reader and writer, the exact manner in which this happens is not observable to + author code, and so there is flexibility in how this is done. The following constraints apply regardless of the + exact algorithm used: + * <strong>Public API must not be used:</strong> while reading or writing, or performing any of the operations + below, the JavaScript-modifiable reader, writer, and stream APIs (i.e. methods on the appropriate prototypes) + must not be used. Instead, the streams must be manipulated directly. + * <strong>Backpressure must be enforced:</strong> + * While WritableStreamDefaultWriterGetDesiredSize(_writer_) is ≤ *0* or is *null*, the user agent must not read + from _reader_. + * If _reader_ is a <a>BYOB reader</a>, WritableStreamDefaultWriterGetDesiredSize(_writer_) should be used to Ohh, never mind. Sorry. -- 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/512
Received on Monday, 24 October 2016 10:49:40 UTC