Re: [whatwg/streams] can streams be transferred via postMessage()? (#276)

> Also, the mere fact that we were waiting for backpressure is actually part of the stream's state, so we need to somehow transfer that as well. We could keep a boolean flag to indicate whether there is backpressure or not, send that flag when transferring the stream, and use that when we transfer-receive the stream to initialize backpressurePromise to either a pending or a resolved promise.

I didn't think of that. It seems doable, but ugly.

-- 
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/streams/issues/276#issuecomment-656393349

Received on Thursday, 9 July 2020 23:08:11 UTC