Exobrain::Agent::Poll - Role for exobrain sources which poll a source.
version 1.08
package Exobrain::Agent::Action::Foo; use Moose; with 'Exobrain::Agent::Poll'; sub poll { # This method will be called on a regular basis. }
This role arranges for the consumer's poll method to be called on a periodic basis. It also includes the functionality of Exobrain::Agent.
poll
This is a wrapper around the actual agent, which arranges to call its poll method every $self-frequency> seconds.
$self-
It never returns.
Paul Fenwick <pjf@cpan.org>
This software is copyright (c) 2014 by Paul Fenwick.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Exobrain, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Exobrain
CPAN shell
perl -MCPAN -e shell install Exobrain
For more information on module installation, please visit the detailed CPAN module installation guide.