Re: [streams] Merge ReadableByteStream into ReadableStream (#430)

> @@ -54,13 +54,39 @@ templatedRSTwoChunksClosed('ReadableStream (two chunks enqueued, then closed)',
>  );
>  
>  templatedRSTwoChunksClosed('ReadableStream (two chunks enqueued async, then closed)',
> -  () => new ReadableStream({
> -    start(c) {
> -      setTimeout(() => c.enqueue(chunks[0]), 10);
> -      setTimeout(() => c.enqueue(chunks[1]), 20);
> -      setTimeout(() => c.close(), 30);
> +  () => {

Right. As this is expanded into various test cases, I chose to just make this stop enqueuing when cancel() is invoked.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/430/files#r55329417

Received on Tuesday, 8 March 2016 08:33:51 UTC