You know that update hook everyone writes that checks whether it's been a second yet?
There you go.
(Also has one-shot triggers, snoozing things, and more.)
NEW: Thanks to some lovely patches from Baanano, now supports a fixed number of repetitions, tasks that won't let you delete them, and more.
0.2: Many changes contributed by Baanano.
Only the public API is exposed now
Task IDs are an increasing sequence (they're not reused)
Error tracking has been removed as it can't work with Utility.Dispatch (used to credit execution to the addon that created the task)
Tasks can be marked as not deleteable on creation
Tasks can be set to execute a variable number of times (in addition to one time or infinite times as before)
Tasks can be paused and resumed (Library.LibCron.pause & Library.LibCron.resume)
New task creating method (Library.LibCron.new) which allows to set these new features. The old creating methods (Library.LibCron.create & Library.LibCron.recurring) are still there for compatibility.
LibGetOpt can now be an optional requirement (requires additional changes in the RiftAddon.toc file)
0.3: TOC update
0.4: SL ToC update
Now tries to pcall your callbacks inside the Dispatch call, and remove things from the list if they throw exceptions.