On Wed, Jun 10, 2020 at 04:03:36PM -0700, Ian Lance Taylor wrote:

[...]
> In the current implementations of Go, Tickers are not garbage
> collected.  They run until they are stopped.  So if you don't stop a
> ticker, it will keep ticking until your program exits.
> 
> (It is possible that future implementations will garbage collect
> Tickers, but it still won't hurt to stop a ticker that you no longer
> need.)

Do I understand correctly, that a stopped Tiker is not garbage
collected, too?  IOW, stopping a Ticker merely makes it not waste CPU
time but it will still float in memory.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20200617142227.5et3eb2ygi3ngh3c%40carbon.

Reply via email to