Re: [streams] Have each of the stream and reader hold promises (#277)

> @@ -812,16 +772,44 @@ The <code>length</code> property of the <code>cancel</code> method is <b>1</b>.
>    <li> Return <b>undefined</b>.
>  </ol>
>  
> +<h4 id="cancel-readable-stream">CancelReadableStream ( stream )</h4>
> +
> +<ol>
> +  <li> If <b>this</b>@\[[state]] is <code>"closed"</code> or <code>"errored"</code>, return
> +    <b>this</b>@\[[closedPromise]].
> +  <li> Let <b>this</b>@\[[queue]] be a new empty List.
> +  <li> Call-with-rethrow CloseReadableStream(<var>stream</var>).
> +  <li> Let <var>sourceCancelPromise</var> be PromiseInvokeOrNoop(<b>this</b>@\[[underlyingSource]],
> +    <code>"cancel"</code>, &laquo;<var>reason</var>&raquo;).

I prefer using the Unicode characters directly

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/277/files#r24359697

Received on Monday, 9 February 2015 19:58:31 UTC