Monks -
I have written a module I intend to release on CPAN which mimics the JavaScript functions setInterval() and clearInterval().
I have the "forks" version ready, and will also release a "threads" version.
My question is - what do you call this? "Interval" is already taken and means something else. "forks::interval" and "threads::interval" sound nice but I haven't contacted the forks/threads module maintainers yet.
Usage looks like this:
use whatever::Interval;
my $interval = whatever::Interval->setInterval(
action => \&do_stuff,
interval => 1000, # One second
);
# "do_stuff()" gets executed once every second.
# ...later...
$interval->clearInterval();
Thoughts? Ideas? Does this functionality already exist in another module?