Re: [whatwg/encoding] Rename Encoding's "streams" to "I/O queues" (#215)

@andreubotella commented on this pull request.



>  
-<p>A <dfn id=concept-stream>stream</dfn> represents an ordered sequence of
-<a>tokens</a>. <dfn>End-of-stream</dfn> is a special
-<a>token</a> that signifies no more
-<a>tokens</a> are in the
-<a for=/>stream</a>.
+<p>To <dfn>create an I/O queue</dfn>, return a new <a for=/>I/O queue</a>

I was thinking of "create an I/O queue" as an operation that would replace the "a new stream" text in the API algorithms: it creates an "empty" immediate queue and leaves it to the calling algorithm to push items into it, since push is careful to sidestep the end-of-queue item. But if you think it should take data to initialize the queue, that's fine.

-- 
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/encoding/pull/215#discussion_r455990489

Received on Thursday, 16 July 2020 18:32:43 UTC