POE::Component::DirWatch::Role::AIO - Make poll calls asynchronous
POE::Component::DirWatch::Role::AIO adds support for non-blocking polling operations using POE::Component::AIO to interface with IO::AIO. The POE::Component::AIO object is stored in the aio attribute, so you can access it in your own applications.
aio
A read-only instance of POE::Component::AIO that is automatically created at instantiation time.
after '_start' Create the aio_callback event and event handler.
after '_start'
aio_callback
around '_poll' Replaces the original _poll method with one that reads the contents of the target directory asynchronously. The original sub is never called.
around '_poll'
_poll
POE::Component::DirWatch, Moose
Copyright 2006-2008 Guillermo Roditi. This is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install POE::Component::DirWatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::DirWatch
CPAN shell
perl -MCPAN -e shell install POE::Component::DirWatch
For more information on module installation, please visit the detailed CPAN module installation guide.