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

cc this issue with https://github.com/whatwg/xhr/issues/277, because that is an actual example where if you implement reading chunks from the stream via queuing tasks on an event-loop, you can get an actual deadlock in the case of the event-loop blocking on a sync XHR. 

I guess you don't have that problem if you simply "do it synchronously by entering the relevant script state when we want to call read()", unless off-course this means acquiring some kind of lock that would be held by the sync XHR call...

-- 
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-635756255

Received on Friday, 29 May 2020 04:47:18 UTC