<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fan-Out on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/fan-out/</link><description>Recent content in Fan-Out on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 13 Oct 2026 08:07:51 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/fan-out/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Fan-out</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-fan-out/</link><pubDate>Tue, 13 Oct 2026 00:00:00 +0000</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-fan-out/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/fan_out.mp4"
 title="Three workers splitting the values of the same channel" aria-label="Three workers splitting the values of the same channel"
 autoplay
 loop
 muted
 playsinline
 controls
 preload="metadata"
 style="width: 100%; height: auto;"&gt;
&lt;/video&gt;

&lt;p&gt;In the &lt;a href="https://cassiobotaro.dev/en/posts/go-concurrency-worker/" &gt;worker&lt;/a&gt; the &lt;code&gt;fmt.Printf&lt;/code&gt; played the role of the processing. Now let&amp;rsquo;s pretend it takes a while.&lt;/p&gt;
&lt;p&gt;A &lt;code&gt;time.Sleep&lt;/code&gt; of 100 milliseconds per value. There are ten values, in other words, one second staring at the screen.&lt;/p&gt;
&lt;p&gt;What if I put three workers reading from the same channel?&lt;/p&gt;</description></item></channel></rss>