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

Fix closed getter note (fixes #912) #914

Merged
merged 3 commits into from
Mar 29, 2018
Merged

Conversation

surma
Copy link
Contributor

@surma surma commented Mar 28, 2018

Took some inspiration from the writer’s closed getter :)


Preview | Diff

Copy link

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index.bs Outdated
reader's lock is <a lt="release a read lock">released</a>, or rejected if the stream ever errors.
The <code>closed</code> getter returns a promise that will be fulfilled when the stream becomes closed, or rejected if
the stream ever errors or the reader's lock is <a lt="release a read lock">released</a> before the stream finishes
closing or the stream errors.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or the stream errors.

I don't think you need to say this, as you've already made it clear that the promise rejects on error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

index.bs Outdated
@@ -3531,7 +3533,7 @@ lt="WritableStreamDefaultWriter(stream)">new WritableStreamDefaultWriter(<var>st
<div class="note">
The <code>closed</code> getter returns a promise that will be fulfilled when the stream becomes closed, or rejected if
the stream ever errors or the writer's lock is <a lt="release a write lock">released</a> before the stream finishes
closing.
closing or the stream errors.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

@surma surma changed the title Fix closed getter (fixes #912) Fix closed getter note (fixes #912) Mar 28, 2018
Copy link

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@ricea
Copy link
Collaborator

ricea commented Mar 29, 2018

Travis CI doesn't seem to be happy. Since this isn't urgent, I (or someone else) can merge it once Travis CI is feeling better.

@surma
Copy link
Contributor Author

surma commented Mar 29, 2018

I re-pushed my last commit to restart Travis. Seems like it worked :)

@ricea ricea merged commit 37ace3d into whatwg:master Mar 29, 2018
@surma surma deleted the rsdr-note-fix branch March 31, 2018 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants