NAME
POE::Component::DirWatch::Role::AIO - Make poll calls asynchronous
DESCRIPTION
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.
ATTRIBUTES
aio
A read-only instance of POE::Component::AIO that is automatically created at instantiation time.
METHODS
start
after '_start'
Create the aio_callback
event and event handler.
_poll
around '_poll'
Replaces the original _poll
method with one that reads the contents of the target directory asynchronously. The original sub is never called.
SEE ALSO
POE::Component::DirWatch, Moose
COPYRIGHT
Copyright 2006-2008 Guillermo Roditi. All Rights Reserved. This is free software; you may redistribute it and/or modify it under the same terms as Perl itself.