POE::Component::DirWatch::Role::AIO - Make poll calls asynchronous


POE-Component-DirWatch documentation  | view source Contained in the POE-Component-DirWatch distribution.

Index


NAME

Top

POE::Component::DirWatch::Role::AIO - Make poll calls asynchronous

DESCRIPTION

Top

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

Top

aio

A read-only instance of POE::Component::AIO that is automatically created at instantiation time.

METHODS

Top

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

Top

POE::Component::DirWatch, Moose

COPYRIGHT

Top


POE-Component-DirWatch documentation  | view source Contained in the POE-Component-DirWatch distribution.