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

Add ReadableStreamOperations for ServiceWorker #350

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

yutakahirano
Copy link
Member

This change adds some ReadableStream operations that are used in w3c/ServiceWorker#934.

@yutakahirano
Copy link
Member Author

@annevk if you have time.

@jungkees fyi

I noticed my wording at w3c/ServiceWorker#934 was a bit inconsistent with existing operations. I will create a PR replacing "cancel a reader" with "cancel a ReadableStream" etc. after this change is landed. I'm sorry for the mess...

<code data-anolis-spec=streams>ReadFromReadableStreamReader</code>(<var>reader</var>).

<li><p>Return <var>promise</var>.
</ol>
Copy link
Member

Choose a reason for hiding this comment

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

I think we should inline this and the other operation you introduce by replacing "run these steps" with "return the result of calling ..."

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@annevk
Copy link
Member

annevk commented Aug 9, 2016

This looks good, shall I rebase it for you?

<p>To <dfn title=concept-read-chunk-from-ReadableStream>read a chunk</dfn> from a
<code title=concept-ReadableStream>ReadableStream</code> object with <var>reader</var>, return the
result of calling
<code data-anolis-spec=streams>ReadFromReadableStreamReader</code>(<var>reader</var>).
Copy link
Member

Choose a reason for hiding this comment

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

Actually, maybe we should not use <code> here? I don't think we do that in HTML.

Copy link
Member

Choose a reason for hiding this comment

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

<span> seems better for abstract operations.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, that should be fixed separately with other abstract operations, I think.

This change adds some ReadableStream operations that are used in
w3c/ServiceWorker#934.
@yutakahirano yutakahirano force-pushed the add-stream-operations branch from 283179d to 195b9fc Compare August 10, 2016 01:17
@yutakahirano
Copy link
Member Author

Filed #361.

@yutakahirano yutakahirano merged commit 195b9fc into master Aug 10, 2016
@annevk
Copy link
Member

annevk commented Aug 10, 2016

Sounds good, thanks!

@annevk annevk deleted the add-stream-operations branch October 31, 2016 10:16
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.

2 participants