(¯'•.¸(¯º¤ø,¸¸,ø¤º Sprinkles! º¤ø,¸¸,ø¤º¯)¸.•'¯)
Periodically invoke a callback using ticks instead calling setInterval
. No memory leaks!
Example
var sprinkle = fs = collection = {}; //call this function every second or sovar persistData = ; var storage = { return collectionkey; } { collectionkey = value; //persist data, but every ~1 second, not every time. It helps //if the tick callback is shoved somewhere that's called often. ; };