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

Include await before writer.close() #707

Merged
merged 1 commit into from
Oct 21, 2020
Merged

Include await before writer.close() #707

merged 1 commit into from
Oct 21, 2020

Conversation

guest271314
Copy link
Contributor

WritableStreamDefaultWriter.close() returns a Promise
https://streams.spec.whatwg.org/#writable-stream-close

`WritableStreamDefaultWriter.close()` returns a `Promise` 
https://streams.spec.whatwg.org/#writable-stream-close
@beaufortfrancois
Copy link
Member

It's not because it returns a promise that we necessarily want to wait until it's closed before adding logs.
I'll let @jeffposnick weigh in.

@guest271314

This comment was marked as off-topic.

@jeffposnick
Copy link
Contributor

awaiting sounds fine to me.

@jeffposnick jeffposnick merged commit 31403db into GoogleChrome:gh-pages Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants