<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Channels on Rohit Garg</title><link>https://rohit-garg.me/tags/channels/</link><description>Recent content in Channels on Rohit Garg</description><generator>Hugo</generator><language>en</language><copyright>© Rohit Garg</copyright><lastBuildDate>Tue, 28 Apr 2026 13:40:00 +0530</lastBuildDate><atom:link href="https://rohit-garg.me/tags/channels/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Counting Semaphore Pattern</title><link>https://rohit-garg.me/go-counting-semaphore/</link><pubDate>Tue, 28 Apr 2026 13:40:00 +0530</pubDate><guid>https://rohit-garg.me/go-counting-semaphore/</guid><description>&lt;p>A counting semaphore limits how many pieces of work can run at the same time.&lt;/p>
&lt;p>In Go, the simplest version is a buffered channel. The channel capacity is the number of available permits. A goroutine sends into the channel before starting work and receives from it when the work is done.&lt;/p></description></item></channel></rss>