<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Select on Rafiul Alam</title>
    <link>https://alamrafiul.com/tags/select/</link>
    <description>Recent content in Select on Rafiul Alam</description>
    <image>
      <title>Rafiul Alam</title>
      <url>https://alamrafiul.com/papermod-cover.png</url>
      <link>https://alamrafiul.com/papermod-cover.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 26 Jun 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://alamrafiul.com/tags/select/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Go Concurrency Pattern: Select Statement</title>
      <link>https://alamrafiul.com/posts/go-select-statement/</link>
      <pubDate>Wed, 26 Jun 2024 00:00:00 +0000</pubDate>
      
      <guid>https://alamrafiul.com/posts/go-select-statement/</guid>
      <description>&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Go Concurrency Patterns Series:&lt;/strong&gt;
&lt;a href=&#34;https://alamrafiul.com/posts/go-channel-fundamentals/&#34;&gt;← Channel Fundamentals&lt;/a&gt; | &lt;a href=&#34;https://alamrafiul.com/concurrency-patterns/&#34;&gt;Series Overview&lt;/a&gt; | &lt;a href=&#34;https://alamrafiul.com/posts/go-pipeline/&#34;&gt;Pipeline Pattern →&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;what-is-the-select-statement&#34;&gt;What is the Select Statement?&lt;/h2&gt;
&lt;p&gt;The select statement is Go&amp;rsquo;s powerful tool for handling multiple channel operations simultaneously. It&amp;rsquo;s like a switch statement, but for channels - it allows a goroutine to wait on multiple communication operations and proceed with whichever one becomes ready first.&lt;/p&gt;
&lt;p&gt;Think of select as a traffic controller at an intersection, managing multiple lanes of traffic (channels) and allowing the first available lane to proceed. This enables non-blocking communication, timeouts, and elegant multiplexing patterns that are essential for robust concurrent programs.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
