Re: [whatwg/streams] Stream read hangs when stream is closed during a BYOB read (Issue #1321)

I was also thinking that the current approach seem susceptible to race conditions unless the implementation ensures there is either never and `await` between a `respond()` and a `close()` or always a `respond(0)` after `close()`. For example if a pull function responds, then awaits on something, then calls `close()` you may end up with period BYOB reader hangs

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

Message ID: <whatwg/streams/issues/1321/2282367021@github.com>

Received on Sunday, 11 August 2024 03:04:10 UTC