POE-Component-DirWatch-0.300004

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.