- From: Andreu Botella <notifications@github.com>
- Date: Thu, 16 Jul 2020 06:04:08 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 16 July 2020 13:04:20 UTC
@andreubotella commented on this pull request. > + +<p>To <dfn id=concept-stream-read for="I/O queue" export>read</dfn> an +<a>item</a> from an <a for=/>I/O queue</a> <var>ioQueue</var>, run these steps: + +<ol> + <li><p>If <var>ioQueue</var> is <a for=list>empty</a>, then wait until its + <a for=list>size</a> is at least 1. + + <li><p>If the first item in <var>ioQueue</var> is <a>end-of-file</a>, then + return <a>end-of-file</a>. + + <li><p>Otherwise, <a for=list>remove</a> the first item in <var>ioQueue</var> + and return it. +</ol> + +<p>To read a number <var>number</var> of <a>items</a> from <var>ioQueue</var>, Here I was trying to take algorithms defined to take "one or more tokens" and split them into two algorithms that took an item and a sequence. But maybe I should try and merge both overloads into one algorithm. -- 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_r455768977
Received on Thursday, 16 July 2020 13:04:20 UTC