streams icon indicating copy to clipboard operation
streams copied to clipboard

Using streams from other specs: define a byte-counting strategy

Open domenic opened this issue 5 years ago • 2 comments
trafficstars

In particular, define one that consults internal slots, as opposed to ByteLengthQueuingStrategy's JavaScript property lookup.

Useful for https://github.com/WICG/serial/pull/105#discussion_r523232500

domenic avatar Nov 16 '20 20:11 domenic

On the other hand, if you create a byte stream, the highWaterMark is always interpreted as bytes. Maybe we should recommend that instead?

ricea avatar Feb 04 '21 21:02 ricea

That's a good point; now that byte streams are a bit more real, we should work on making them easier to use from other specs. (Currently the other-spec algorithms can't even create them.)

domenic avatar Feb 04 '21 21:02 domenic