Promises::Deferred::AE - An implementation of Promises in Perl
version 0.06
use Promises backend => ['AE'], qw[ deferred collect ]; # ... everything else is the same
The "Promise/A+" spec strongly suggests that the callbacks given to then should be run asynchronously (meaning in the next turn of the event loop), this module provides support for doing so using the AE module.
then
Module authors should not care which event loop will be used but instead should just the Promises module directly:
package MyClass; use Promises qw(deferred collect);
End users of the module can specify which backend to use at the start of the application:
use Promises -backend => ['AE']; use MyClass;
Stevan Little <stevan.little@iinteractive.com>
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
=back without =over
To install Promises, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Promises
CPAN shell
perl -MCPAN -e shell install Promises
For more information on module installation, please visit the detailed CPAN module installation guide.