streams icon indicating copy to clipboard operation
streams copied to clipboard

Define generic operation for GetDesiredSize?

Open rombel opened this issue 7 years ago • 1 comments

In current version of the spec, ReadableStreamDefaultControllerGetDesiredSize and ReadableByteStreamControllerGetDesiredSize describe exactly the same process (this is because queueTotalSize is now used for both controllers). Wouldn't it be possible to define a single ReadableStreamControllerGenericGetDesiredSize, similarly to what is done for some reader operations?

rombel avatar May 17 '17 15:05 rombel

Yeah, sounds fine.

https://streams.spec.whatwg.org/#readable-byte-stream-controller-get-desired-size https://streams.spec.whatwg.org/#readable-stream-default-controller-get-desired-size

tyoshino avatar May 22 '17 07:05 tyoshino

Now that we're linking the internal slots, this seems less good.

domenic avatar Dec 13 '23 07:12 domenic