- From: Adam Rice <notifications@github.com>
- Date: Fri, 11 Sep 2020 08:39:18 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/streams/pull/1073/review/486916382@github.com>
@ricea commented on this pull request. > + algorithm <dfn export for="WritableStream/create"><var>abortAlgorithm</var></dfn>, an optional + number <dfn export for="WritableStream/create"><var>highWaterMark</var></dfn> (default 1), an + optional algorithm <dfn export for="WritableStream/create"><var>sizeAlgorithm</var></dfn>, perform + the following steps. |writeAlgorithm| must be an algorithm that accepts a [=chunk=] object and + returns a promise. If given, |closeAlgorithm| and |abortAlgorithm| must return a promise. If + given, |sizeAlgorithm| must be an algorithm accepting [=chunk=] objects and + returning a number; and if given, |highWaterMark| must be a non-negative, non-NaN number. + + 1. Let |startAlgorithm| be an algorithm that returns undefined. + 1. Let |closeAlgorithmWrapper| be an algorithm that runs these steps: + 1. If |closeAlgorithm| was given, return the result of running it. + 1. Return [=a promise resolved with=] undefined. + 1. Let |abortAlgorithmWrapper| be an algorithm that runs these steps: + 1. If |abortAlgorithm| was given, return the result of running it. + 1. Return [=a promise resolved with=] undefined. + 1. If |sizeAlgorithm| is not given, then set it to an algorithm that returns 1. That makes sense. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1073#discussion_r487128278
Received on Friday, 11 September 2020 15:39:30 UTC