- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 14 Jan 2021 15:52:51 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 January 2021 23:53:03 UTC
@MattiasBuelens commented on this pull request.
> @@ -1456,6 +1456,6 @@ function ReadableStreamFromIterable(asyncIterable) {
return promiseResolvedWith(returnResult);
}
- stream = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm);
+ stream = CreateReadableStream(startAlgorithm, pullAlgorithm, cancelAlgorithm, 0);
It feels like there's a connection missing somewhere... There's no way for the writable end of a transform stream to know that the readable end is being read from. 🤔
```javascript
let { readable, writable } = new TransformStream({}, { highWaterMark: 0 });
let r = readable.getReader();
let w = writable.getWriter();
// we start reading from the readable end...
let read1 = r.read();
// ...but the writable end is still applying backpressure. :-/
w.desiredSize; // still 0
w.ready; // still pending
```
--
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/1083#discussion_r557774110
Received on Thursday, 14 January 2021 23:53:03 UTC