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

Editorial: stop using "promise-calling" #937

Merged
merged 2 commits into from
Sep 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2203,19 +2203,34 @@ parameter, please update it.
<ol>
<li><p>Let <var>startAlgorithm</var> be an algorithm that returns undefined.

<li><p>If <var>pull</var> is absent, then set it to an action that returns undefined.
<li><p>If <var>pull</var> is not given, then set it to an action that returns undefined.

<li><p>Let <var>pullAlgorithm</var> be an algorithm that returns the result of [=promise-calling=]
<var>pull</var>().
<li>
<p>Let <var>pullAlgorithm</var> be an algorithm that runs these steps:

<ol>
<li><p>Let <var>pullCallback</var> be a <a for=/>callback function</a> whose return type is
<code>Promise&lt;void></code> and whose steps to run are <var>pull</var>.

<li><p>Return the result of <a>invoking</a> <var>pullCallback</var> with « ».
</ol>

<li><p>If <var>cancel</var> is absent, then set it to an action that returns undefined.
<li><p>If <var>cancel</var> is not given, then set it to an action that returns undefined.

<li><p>Let <var>cancelAlgorithm</var> be an algorithm that takes a <var>reason</var> and returns
the result of [=promise-calling=] <var>cancel</var>(<var>reason</var>).
<li>
<p>Let <var>cancelAlgorithm</var> be an algorithm that runs these steps:

<ol>
<li><p>Let <var>cancelCallback</var> be a <a for=/>callback function</a> whose return type is
<code>Promise&lt;void></code>, argument list is « <var>reason</var> », and whose steps to run are
<var>cancel</var>.

<li><p>Return the result of <a>invoking</a> <var>cancelCallback</var> with « <var>reason</var> ».
</ol>

<li><p>If <var>highWaterMark</var> is absent, then set it to 1.
<li><p>If <var>highWaterMark</var> is not given, then set it to 1.

<li><p>If <var>sizeAlgorithm</var> is absent, then set it to an algorithm that returns 1.
<li><p>If <var>sizeAlgorithm</var> is not given, then set it to an algorithm that returns 1.

<li><p>Return [$CreateReadableStream$](<var>startAlgorithm</var>, <var>pullAlgorithm</var>,
<var>cancelAlgorithm</var>, <var>highWaterMark</var>, <var>sizeAlgorithm</var>).
Expand Down