Async-Event-Interval
view release on metacpan or search on metacpan
@params
Optional, List: A list of parameters to pass to the callback. Note that these
are not shared parameters and are a copy only, so changes to them in the main
code will not be seen in the event, and vice-versa. See ["shared\_scalar"](#shared_scalar) if
you'd like to use variables that can be shared between the main application and
the events.
## start
Starts the event timer. Each time the interval is reached, the event callback
is executed.
## stop
Stops the event from being executed.
## restart
Alias for `start()`. Re-starts a `stop()`ped event.
lib/Async/Event/Interval.pm view on Meta::CPAN
the events.
Also note: These parameters are sent into the event only once. Each
time the callback is called, they will receive the exact same set of params.
To have the event get different values in the params each time the callback is
called, see L</start(@params)>.
=head2 start(@params)
Starts the event timer. Each time the interval is reached, the event callback
is executed.
Parameters:
@params
Optional, List: A list of parameters that the callback will receive each time
the callback is called. This is most effective in single-run mode so you can
send in different parameter values on each incarnation. The parameters can be
any type of any complexity. Your callback will get them in whatever order you
( run in 0.552 second using v1.01-cache-2.11-cpan-49f99fa48dc )