diff options
Diffstat (limited to 'html/channel.mu.html')
-rw-r--r-- | html/channel.mu.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/channel.mu.html b/html/channel.mu.html index 2a485823..428e1b8b 100644 --- a/html/channel.mu.html +++ b/html/channel.mu.html @@ -68,7 +68,7 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr">12 </span> <span class="Comment"># other threads might get between these prints</span> <span id="L13" class="LineNr">13 </span> $print <span class="Constant">[produce: ]</span>, n, <span class="Constant">[ </span> <span id="L14" class="LineNr">14 </span><span class="Constant">]</span> -<span id="L15" class="LineNr">15 </span> sink <span class="Special"><-</span> write sink, n +<span id="L15" class="LineNr">15 </span> sink <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> sink, n <span id="L16" class="LineNr">16 </span> n <span class="Special"><-</span> add n,<span class="Constant"> 1</span> <span id="L17" class="LineNr">17 </span> <span class="muControl">loop</span> <span id="L18" class="LineNr">18 </span> <span class="Delimiter">}</span> @@ -92,7 +92,7 @@ if ('onhashchange' in window) { <span id="L36" class="LineNr">36 </span> <span id="L37" class="LineNr">37 </span><span class="muRecipe">def</span> main [ <span id="L38" class="LineNr">38 </span> <span class="Constant">local-scope</span> -<span id="L39" class="LineNr">39 </span> source:&:source:char, sink:&:sink:char <span class="Special"><-</span> new-channel <span class="Constant">3/capacity</span> +<span id="L39" class="LineNr">39 </span> source:&:source:char, sink:&:sink:char <span class="Special"><-</span> <a href='075channel.mu.html#L51'>new-channel</a> <span class="Constant">3/capacity</span> <span id="L40" class="LineNr">40 </span> <span class="Comment"># create two background 'routines' that communicate by a channel</span> <span id="L41" class="LineNr">41 </span> routine1:num <span class="Special"><-</span> start-running producer, sink <span id="L42" class="LineNr">42 </span> routine2:num <span class="Special"><-</span> start-running consumer, source |