-
Notifications
You must be signed in to change notification settings - Fork 341
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
Conversation
@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> |
There was a problem hiding this comment.
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 ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
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>). |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
283179d
to
195b9fc
Compare
Filed #361. |
Sounds good, thanks! |
This change adds some ReadableStream operations that are used in w3c/ServiceWorker#934.