Re: [whatwg/streams] Interesting edge case... queueMicrotask and desiredSize in start algorithm (Issue #1362)

jasnell left a comment (whatwg/streams#1362)

Digging in it appears the answer here is that because of the microtask deferral, the enqueued microtask actually does not run until the first read, so I'm suspecting that the enqueue is actually fulfulling the read causing the desiredSize not to change, but it's counter-intuitive at best.

this, btw, came up from a user who was reporting it as an odd edge case.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1362#issuecomment-3751660281
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1362/3751660281@github.com>

Received on Wednesday, 14 January 2026 20:50:18 UTC