Re: [whatwg/fetch] Editorial: Amend body reading to use no-promise version (PR #1569)

> > Two thoughts:
> > 
> > 1. I don't understand how "read all bytes" works as it doesn't seem to yield to the event loop.
> 
> This is true in general for streams I believe. Not sure I have a good answer. I think this problem exists in the current wording and in all the callers of streams if I understand this correctly.
> 
> > 2. If it somehow works I think we can rewrite "consume body" in a better way whereby it only uses a promise for the return value and not any internal logic.
> 
> Gotcha, will amend.

Done, I think it looks a lot clearer

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1569#issuecomment-1361251417
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1569/c1361251417@github.com>

Received on Wednesday, 21 December 2022 12:26:35 UTC