ommunication
between threads, processes, or over the network. Streams are wrappers around file descriptors and operate on streams of bytes. Streams can communicate across threads, processes, and across
the network.
</p>
<p>With these constraints, channels are preferred for things like internal queues and between-task communication, where streams are useful for most everything else.
</p>
<h2 id="Channels">Channels
</h2>
<p>Channels are based around a queue abstraction, where producer tasks will add items to 