You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter what function I use, every times requires a strong reference in order to fire.
Everything instantly deallocates itself if I dont have a strong reference. I'm creating multiple timers and dont want to have to declare a dozen variables to store all of these, thats just not practical.
Looking at the tests, I should be able to do this, however, the same thing appears to happen here.
Did I miss something in the readme about this requiring a strong reference of itself to continuously fire, or is this a bug? Been wracking my head out for about 2 hours trying to figure out what the hell was going on.
Thanks
The text was updated successfully, but these errors were encountered:
This is a memory management question; obviously you need to keep the timer alive as any other object, so strong reference is part of the game.
I've also added this stuff into the doc, even if its a general question more than a specific timer-related question.
No matter what function I use, every times requires a strong reference in order to fire.
Everything instantly deallocates itself if I dont have a strong reference. I'm creating multiple timers and dont want to have to declare a dozen variables to store all of these, thats just not practical.
Looking at the tests, I should be able to do this, however, the same thing appears to happen here.
Did I miss something in the readme about this requiring a strong reference of itself to continuously fire, or is this a bug? Been wracking my head out for about 2 hours trying to figure out what the hell was going on.
Thanks
The text was updated successfully, but these errors were encountered: