Port streams #10020
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
Simpler web worker instantiation and messaging that fits better in a Promise-driven world
What solutions exist today?
Nor sure of any. Just
new Promise
boilerplate as far as I can tell.How would you solve it?
worker.readable
,port.readable
,workerGlobal.readable
: Readable streams that emit received messages. Closes upon worker close.worker.writable
,port.writable
,workerGlobal.writable
: Writable streams that send written messages. Closing terminates the workerwindow.requestTransfer(object)
: Marks an object as to be transferred. When StructuredSerializeWithTransfer visits it, it's added to the transfer array dynamically, and StructuredDeserializeWithTransfer puts the transferred object in its place at the given path.Anything else?
No response
The text was updated successfully, but these errors were encountered: