[go-nuts] Re: NewTicker leak

2017-04-14 Thread Fabián Inostroza
Many thanks to all of you, I suspected it was related to the copy made while dereferencing the pointer but I didn't know that the runtime also stores a copy of the pointer, It is not explicitly stated in the documentation. El viernes, 14 de abril de 2017, 2:11:41 (UTC-3), Fabián Inos

[go-nuts] NewTicker leak

2017-04-13 Thread Fabián Inostroza
Hi, I'm writing and application where I need to check for some condition and do something every 'x' < 'y' seconds. If the condition is not true after 'y' seconds I do something. Every time the condition checked every 'x' seconds is true I have to reset the 'y' timeout. I wrote a test applicati