Download
(20 Kb)
Download
Updated: 07-12-13 07:55 PM
Updated:07-12-13 07:55 PM
Created:04-01-12 12:18 PM
Downloads:779
Favorites:2
MD5:
LibCron
Version: 0.6
by: seebs [More]
You know that update hook everyone writes that checks whether it's been a second yet?

Library.LibCron.recurring(1, my_update_handler)

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.

0.5: New Event API.

0.6: Getopt update for new event API.
Optional Files (0)


Archived Files (5)
File Name
Version
Size
Author
Date
0.5
20kB
seebs
07-06-13 01:24 AM
0.4
19kB
seebs
11-03-12 01:51 AM
0.3
12kB
seebs
06-22-12 09:44 PM
0.2
12kB
seebs
04-19-12 08:04 PM
0.1
11kB
seebs
04-01-12 12:18 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: