Continual::Process::Loop::AnyEvent - loop with AnyEvent support
my $loop = Continual::Process::Loop::AnyEvent->new( instances => [ Continual::Process::Instance->new(...), ] ); $loop->run(); my $tick = AnyEvent->timer( interval => 10, cb => sub { say 'Tick each 10s'; } ); my $cv = AnyEvent->condvar(); $cv->recv;
This is implementation of Continual::Process::Loop with AnyEvent.
It is useful if you can use another AnyEvent events in loop.
This module is really EXPERIMENTAL, for example die is not catched yet.
die
All methods inherit from Continual::Process::Loop.
Copyright (C) Avast Software.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jan Seidl <seidl@avast.com>
To install Continual::Process, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Continual::Process
CPAN shell
perl -MCPAN -e shell install Continual::Process
For more information on module installation, please visit the detailed CPAN module installation guide.