Re: [whatwg/fetch] ReadableStream and in-parallel/event-loop integration question (#976)

> Wouldn't this require interacting with the corresponding javascript stream, which could consists of an arbitrary number of other streams piped/transformed into it?

I think so, yes.

> Would it perhaps be more correct to queue a task on the event-loop which would start reading chunks from the stream, and for each chunk queue "in-parallel" steps back on fetch that would transmit those chunks over the network?

That seems like a good solution. I suppose the current text could be considered as shorthand for doing something like that, but it's not helpful for people who actually have to implement it.

On the other hand, in Blink currently it doesn't work by queuing a task, and I worry that the difference might be visible.

-- 
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/issues/976#issuecomment-560304547

Received on Monday, 2 December 2019 09:14:56 UTC