Promises::Promise - An implementation of Promises in Perl
Promise objects are typically not created by hand,
they are typically returned from the
promise method of a Promises::Deferred instance.
It is best to think of a Promises::Promise instance as a handle for Promises::Deferred instances.
Most of the documentation here points back to the documentation in the Promises::Deferred module.
Additionally the Promises module contains a long explanation of how this module, and all it's components are meant to work together.
new( $deferred )
The constructor only takes one parameter and that is an instance of Promises::Deferred that you want this object to proxy.
then( $callback, $error )
then on the proxied Promises::Deferred instance.
status on the proxied Promises::Deferred instance.
result on the proxied Promises::Deferred instance.
Stevan Little <firstname.lastname@example.org>
This software is copyright (c) 2012 by Infinity Interactive, Inc..