Re: [whatwg/streams] Update TransformStream API & misc. fixups (#519)

> I would like to have the guarantee that transform() is not called until start()'s Promise resolves (and not at all if it rejects), and flush() is not called until transform()'s Promise resolves.

`start()` doesn't return a promise yet, but adding one with that invariant makes sense. But flush() is only called from sink.close(), and that's already guaranteed not to be called until the last sink.write() promise resolves, which is only resolved when a transform() promise resolves, if I understand it all correctly.

-- 
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/pull/519#issuecomment-248461040

Received on Tuesday, 20 September 2016 22:58:17 UTC