Re: [whatwg/fetch] Use tasks to manipulate streams (#1270)

Yeah, it's definitely a large undertaking.

I agree it doesn't work for background fetch; you'd need some sort of special casing for that. (Or a fake event loop, eugh.)

It might be best to take a step back and ask how implementations handle this. Maybe we could model that more closely. Presumably they create any ReadableStream objects only (?) for fetch() calls or service worker Request/Response construction, on the main thread. And then queue tasks to manipulate them as appropriate.

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

Received on Thursday, 29 July 2021 14:56:46 UTC