AnyEvent::Util - various utility functions.
use AnyEvent::Util;
This module implements various utility functions, mostly replacing well-known functions by event-ised counterparts.
All functions documented without AnyEvent::Util:: prefix are exported by default.
AnyEvent::Util::
Sets the blocking state of the given filehandle (true == nonblocking, false == blocking). Uses fcntl on anything sensible and ioctl FIONBIO on broken (i.e. windows) platforms.
This function creates a special object that, when called, will execute the code block.
This is often handy in continuation-passing style code to clean up some resource regardless of where you break out of a process.
You can call one method on the returned object:
This simply causes the code block not to be invoked: it "cancels" the guard.
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/
To install AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent
CPAN shell
perl -MCPAN -e shell install AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.