Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Wait until any ongoing write finishes (i.e. the..." #618

Open
ricea opened this issue Nov 21, 2016 · 1 comment
Open

"Wait until any ongoing write finishes (i.e. the..." #618

ricea opened this issue Nov 21, 2016 · 1 comment
Labels

Comments

@ricea
Copy link
Collaborator

ricea commented Nov 21, 2016

https://streams.spec.whatwg.org/#rs-pipeTo-shutdown-with-action

Wait until any ongoing write finishes (i.e. the corresponding promises settle).

It's not clear whether this refers to the promises returned by the underlying sink's write() method, or the promises equivalent to those that would have been returned from writer.write() if we were using the public API. This may make a difference depending on the resolution of #611.

@domenic
Copy link
Member

domenic commented Nov 22, 2016

or the promises equivalent to those that would have been returned from writer.write() if we were using the public API.

This was the intent. In the reference implementation it was implemented using WritableStreamDefaultWriterWrite, but I guess we never called that out by name. Probably we should...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants