Re: [streams] Change the model for ReadableStream to have async read() (#288)

We don't need to cancel it though, just redirect the result to the reader's next read() promise instead of the already-returned read() promise from the stream.
________________________________
From: Yutaka Hirano<mailto:notifications@github.com>
Sent: ý2015-ý02-ý24 11:03
To: whatwg/streams<mailto:streams@noreply.github.com>
Cc: Domenic Denicola<mailto:d@domenic.me>
Subject: Re: [streams] Change the model for ReadableStream to have async read() (#288)


  1.  getReader() rejects any pending read() operation
  2.  getReader() fails if there's pending read() operation

I think in some platforms we can't cancel an async read operation. With such platforms 1 doesn't work.

—
Reply to this email directly or view it on GitHub<https://github.com/whatwg/streams/pull/288#issuecomment-75784549>.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/288#issuecomment-75785135

Received on Tuesday, 24 February 2015 16:06:51 UTC