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

> To properly warn developers in that case we'd need to do something complicated, like, on middle-context teardown, error all streams that are currently being passed through the context. Do you think that'd be reasonably implementable? I can think of how to spec it, but the spec isn't concerned with efficiency.

I agree that it would be the best behaviour, but I think it falls under the category of "things we could implement, but probably wouldn't". It would involve messing around in the internals of MessagePort, which is unlikely to be pleasant and quite likely to break other things.

I can imagine other browsers might have implemented MessagePort in a way that makes it impossible to efficiently observe disentanglement.

In practice people will usually send data through their streams, so maybe they'll find out soon enough?

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

Received on Tuesday, 21 July 2020 21:10:57 UTC