<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Select on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/select/</link><description>Recent content in Select on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 19 Oct 2026 21:32:29 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/select/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Fan-in</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-fan-in/</link><pubDate>Tue, 20 Oct 2026 00:00:00 -0300</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-fan-in/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/fan_in.mp4"
 title="Several input channels combined into a single output channel" aria-label="Several input channels combined into a single output 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-tee/" &gt;tee&lt;/a&gt; one channel became several copies. In the &lt;a href="https://cassiobotaro.dev/en/posts/go-concurrency-fan-out/" &gt;fan-out&lt;/a&gt; one channel became several workers.&lt;/p&gt;
&lt;p&gt;Now it&amp;rsquo;s the other way around. I have three generators and I want to read everything with a single &lt;code&gt;range&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="what-a-fan-in-is"&gt;
 What a fan-in is
 &lt;a class="heading-link" href="#what-a-fan-in-is"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;A fan-in copies the values of several input channels into a single output channel.&lt;/p&gt;</description></item></channel></rss>