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

I hadn't fully appreciated the distinction between "double transfers are broken" and "double transfers are broken if you tear down the middle context". I see now that we are in the latter situation, not the former.

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.

In spec-land (and implementation-land?) you can synchronously observe the state of a promise. It's something we try to avoid but this seems like a special case.

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

Received on Tuesday, 21 July 2020 20:45:25 UTC