UAV::Pilot::Events
my $condvar = AnyEvent->condvar; my $events = UAV::Pilot::Events->new({ condvar => $condvar, }); $events->register( ... ); $events->init_event_loop; $condvar->recv;
Handles event loops on a regular timer.
new({ condvar => $cv, })
Constructor. The condvar argument is an AnyEvent::Condvar.
condvar
AnyEvent::Condvar
register( $event_handler )
Adds a object that does the UAV::Pilot::EventHandler role to the list. The process_events method on that object will be called each time the event loop runs.
UAV::Pilot::EventHandler
process_events
Sets up the event loop. Note that you must still call recv on the AnyEvent::Condvar to start the loop running.
recv
To install UAV::Pilot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UAV::Pilot
CPAN shell
perl -MCPAN -e shell install UAV::Pilot
For more information on module installation, please visit the detailed CPAN module installation guide.