On Sun, Feb 5, 2017 at 8:32 AM, Cyril Ferlicot D. <cyril.ferlicot@gmail.com> wrote:
Le 05/02/2017 à 01:08, Dimitris Chloupis a écrit :
The initial intention was to not make it a singleton to allow for multiple instances of timers. Hence why it's wiped out. But making it a singleton is something Phil asked for too, I just forgot to turn it into a singleton. I will update it tomorrow. I use only a single instance myself as well too.
If that's your intention why not keeping a "default" one and let the user create new ones by hand?
Singleton is to prevent two objects to exist at the same time and if I understood correctly there is nothing preventing to get two timer.
I never paid much attention to the semantics of different singleton. But recently I read this and found it made sense... https://www.peteruhnak.com/blog/2015/12/06/singleton-variations/ cheers -ben