Re: [whatwg/streams] Provide a way for the underlying sink to signal write progress? (#876)

Two additional alternative approaches

1. Create and use a `CustomEvent` with type set to `"progress"`, dispatch the event with `bytesSoFar` and `resolve` argument of `Promise` executor set at `detail` property of `.dispatchEvent()`; which provides a means to halt further write (or read) until the `Promise` is fulfilled;
2. For remote connections under the developers control, `EventSource` can be used as a persistent streaming connection (until closed) to get the bytes received at or sent from the remote connection.

-- 
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/876#issuecomment-375383571

Received on Thursday, 22 March 2018 17:08:08 UTC