Promises::Deferred::EV - An implementation of Promises in Perl
use Promises backend => ['EV'], 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 EV module.
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 => ['EV']; use MyClass;
Stevan Little <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Infinity Interactive, Inc..
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 65:
=back without =over