On Wed, Jun 17, 2020 at 7:24 AM Konstantin Khomoutov <kos...@bswap.ru> wrote: > > 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.
A stopped Ticker will be garbage collected. Ian -- 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/CAOyqgcUDoJCMqmDL5E5oF7GN3P_c-WV440NPm4FOHihiDtutNw%40mail.gmail.com.