Re: [whatwg/streams] pipeTo(): the stream queues should be used (#653)

I have an idea for a test, although not the spec wording to go with it.

```javascript
readable
  .pipeThrough(new TransformStream(undefined, new CountQueuingStrategy(64))
  .pipeTo(writable);
```

Initially writable blocks, and readable produces one chunk immediately for every call to pull(). After 64 chunks have been created, readable blocks (a Promise is returned from pull() that doesn't resolve) and writable starts accepting chunks. Expect 64 chunks to be written to the writable.

What do you think? Is it reasonable to expect every implementation to pass this test, or is it okay for an implementation to deliver <64 in this case?

-- 
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/issues/653#issuecomment-273403725

Received on Wednesday, 18 January 2017 07:32:04 UTC