Re: [whatwg/streams] Idiomatic Way to Explicitly Tell an Underlying Transform Stream to Flush to the Sink (#960)

I think `sync()` would be a good addition. I haven't yet run into a use case for it myself though, so I don't have any examples other than the ones you've already mentioned.

I'm not sure about the name. I would have liked `flush()`, but that already has a meaning for transform streams. `yield()` could work, but that could get confusing with the `yield` keyword (although the same could be said of `Promise.catch()`, `Promise.finally()` and `Iterator.return()`). Anyway, this might just be me bikeshedding. 😅 

-- 
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/960#issuecomment-580930129

Received on Friday, 31 January 2020 22:02:48 UTC