fix: fix incorrect result output of closing-channels example
This commit is contained in:
parent
3397ebcf08
commit
3c3277aab2
@ -1,11 +1,11 @@
|
|||||||
$ go run closing-channels.go
|
$ go run closing-channels.go
|
||||||
sent job 1
|
sent job 1
|
||||||
received job 1
|
|
||||||
sent job 2
|
sent job 2
|
||||||
received job 2
|
|
||||||
sent job 3
|
sent job 3
|
||||||
received job 3
|
|
||||||
sent all jobs
|
sent all jobs
|
||||||
|
received job 1
|
||||||
|
received job 2
|
||||||
|
received job 3
|
||||||
received all jobs
|
received all jobs
|
||||||
|
|
||||||
# The idea of closed channels leads naturally to our next
|
# The idea of closed channels leads naturally to our next
|
||||||
|
6
public/closing-channels
generated
6
public/closing-channels
generated
@ -155,12 +155,12 @@ we saw earlier.</p>
|
|||||||
|
|
||||||
<pre class="chroma"><span class="gp">$</span> go run closing-channels.go
|
<pre class="chroma"><span class="gp">$</span> go run closing-channels.go
|
||||||
<span class="go">sent job 1
|
<span class="go">sent job 1
|
||||||
</span><span class="go">received job 1
|
|
||||||
</span><span class="go">sent job 2
|
</span><span class="go">sent job 2
|
||||||
</span><span class="go">received job 2
|
|
||||||
</span><span class="go">sent job 3
|
</span><span class="go">sent job 3
|
||||||
</span><span class="go">received job 3
|
|
||||||
</span><span class="go">sent all jobs
|
</span><span class="go">sent all jobs
|
||||||
|
</span><span class="go">received job 1
|
||||||
|
</span><span class="go">received job 2
|
||||||
|
</span><span class="go">received job 3
|
||||||
</span><span class="go">received all jobs</span></pre>
|
</span><span class="go">received all jobs</span></pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user