- From: Takeshi Yoshino <notifications@github.com>
- Date: Fri, 28 Oct 2016 07:48:01 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 28 October 2016 14:48:32 UTC
tyoshino commented on this pull request. > @@ -363,14 +386,18 @@ module.exports = class TransformStream { this._readable = new ReadableStream(source, transformer.readableStrategy); - const sink = new TransformStreamSink(this, startPromise); + const sink = new TransformStreamSink(this, startPromise.then(() => { + return TransformStreamBackpressureGonePromise(this); + })); I felt that it's more readable to me to place logic exchanging signal between sink and source or doing something based on stuff stored inside TransformStream. TransformStream is already controlling the completion of sink.start by passing startPromise. I was viewing this as an additional delaying logic from TransformStream. And, this signal is based on observation on the source. That's my thought behind this suggestion. But your points also makes sense. So, I'll go with your original structure. -- 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/571
Received on Friday, 28 October 2016 14:48:32 UTC