- From: Adam Rice <notifications@github.com>
- Date: Thu, 02 Nov 2017 08:47:30 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 2 November 2017 08:47:53 UTC
ricea commented on this pull request. > +<div class="non-normative"> + +<em>This section is non-normative.</em> + +If one were to write the {{TransformStreamDefaultController}} class in something close to the syntax of [[!ECMASCRIPT]], +it would look like + +<pre><code class="lang-javascript"> + class TransformStreamDefaultController { + constructor(stream) + + get desiredSize() + + enqueue(chunk) + error(reason) + terminate() Yes, they all have different semantics. So based on the principle of "different things should look different", we use different names for them. See #774 for the discussion where we added `terminate()`. The difference between `cancel()` and `close()` is mentioned in the FAQ: https://github.com/whatwg/streams/blob/master/FAQ.md#why-dont-errors-that-occur-while-cancelling-put-the-readable-stream-in-an-error-state -- 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/811#discussion_r148469400
Received on Thursday, 2 November 2017 08:47:53 UTC