<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cancellation on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/cancellation/</link><description>Recent content in Cancellation on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 29 Oct 2026 13:15:29 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/cancellation/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Confirmed stop</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-confirmed-stop/</link><pubDate>Wed, 25 Nov 2026 00:00:00 -0300</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-confirmed-stop/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/parada_com_confirmacao.mp4"
 title="The stop request going down through the context and the confirmation coming back up" aria-label="The stop request going down through the context and the confirmation coming back up"
 autoplay
 loop
 muted
 playsinline
 controls
 preload="metadata"
 style="width: 100%; height: auto;"&gt;
&lt;/video&gt;

&lt;p&gt;Since the &lt;a href="https://cassiobotaro.dev/en/posts/go-concurrency-generators/" &gt;generators&lt;/a&gt; the whole series has used &lt;code&gt;ctx.Done()&lt;/code&gt; to tell a goroutine to stop.&lt;/p&gt;
&lt;p&gt;But telling it to stop doesn&amp;rsquo;t mean it stopped. If the generator has an open file or a connection to close, what happens to it?&lt;/p&gt;</description></item></channel></rss>