NAME
Zing::Zang::Timer - Timer Process
ABSTRACT
Timer Process Implementation
SYNOPSIS
use Zing::Zang::Timer;
my $zang = Zing::Zang::Timer->new(
schedules => [['@minute', ['tasks'], {do => 1}]],
);
# $zang->execute;
DESCRIPTION
This package provides a Zing::Timer which uses callbacks and doesn't need to be subclassd. It supports providing a process perform
method as on_perform
and a receive
method as on_receive
which operate as expected, and also a schedules
attribute which takes a list of schedules to enforce.
INHERITS
This package inherits behaviors from:
LIBRARIES
This package uses type constraints from:
ATTRIBUTES
This package has the following attributes:
on_perform
on_perform(Maybe[CodeRef])
This attribute is read-only, accepts (Maybe[CodeRef])
values, and is optional.
on_receive
on_receive(Maybe[CodeRef])
This attribute is read-only, accepts (Maybe[CodeRef])
values, and is optional.
schedules
schedules(ArrayRef[Schedule])
This attribute is read-only, accepts (ArrayRef[Schedule])
values, and is required.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".