NAME
Promises::Promise - An implementation of Promises in Perl
VERSION
version 0.93
DESCRIPTION
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 Promises::Cookbook::GentleIntro contains a long explanation of how this module, and all it's components are meant to work together.
METHODS
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 )-
This calls
thenon the proxied Promises::Deferred instance. catch( $error )-
This calls
catchon the proxied Promises::Deferred instance. done( $callback, $error )-
This calls
doneon the proxied Promises::Deferred instance. finally( $callback )-
This calls
finallyon the proxied Promises::Deferred instance. status-
This calls
statuson the proxied Promises::Deferred instance. result-
This calls
resulton the proxied Promises::Deferred instance. is_unfulfilled-
This calls
is_unfulfilledon the proxied Promises::Deferred instance. is_fulfilled-
This calls
is_fulfilledon the proxied Promises::Deferred instance. is_failed-
This calls
is_failedon the proxied Promises::Deferred instance. is_in_progress-
This calls
is_in_progresson the proxied Promises::Deferred instance. is_resolved-
This calls
is_resolvedon the proxied Promises::Deferred instance. is_rejected-
This calls
is_rejectedon the proxied Promises::Deferred instance.
AUTHOR
Stevan Little <stevan.little@iinteractive.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 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.