RECENT POSTS

P5-io-event

May 26, 2018

Tied Filehandles for Nonblocking IO with Object Callbacks

IOEvent provides an object-based callback system for handling nonblocking IO. The design goal is to provide a system that just does the right thing without the user needing to think about it much.

All APIs are kept as simple as possible yet at the same time, all functionality is accesible if needed. Simple things are easy. Hard things are possible.

Most of the time file handling syntax will work fine <$filehandle> and print $filehandle ‘stuff’.

IOEvent provides automatic buffering of output with a callback to throttle. It provides automatic line-at-a-time input.

After initial setup, call IOEventloop.

IOEvent was originally written to use Event. IOEvent still defaults to using Event but it can now use AnyEvent or its own event loop.

WWW http//search.cpan.org/dist/IO-Event/