- From: Mattias Buelens <notifications@github.com>
- Date: Thu, 06 Aug 2020 10:39:23 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 6 August 2020 17:39:40 UTC
Unfortunately, it's not *just* this one case. All of the following abstract ops can be called on both types of readers. As such, (1) is not an option: * `ReadableStreamReaderGenericInitialize` uses both _reader_.[[stream]] and _reader_.[[closedPromise]] * `ReadableStreamReaderGenericRelease` uses both _reader_.[[stream]] and _reader_.[[closedPromise]] * `ReadableStreamClose` uses _reader_.[[closedPromise]] * `ReadableStreamError` uses _reader_.[[closedPromise]] I don't like (2). There are too many places where we would need branching. I think the existence of `ReadableStreamReaderGenericInitialize` and `ReadableStreamReaderGenericRelease` already suggest that there should be some concept of a "generic reader". I'm not sure whether this should be expressed in the Web IDL or not. For now, I'm leaning more towards (3). -- 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/1050#issuecomment-670076163
Received on Thursday, 6 August 2020 17:39:40 UTC