GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Promises::Promise(3) User Contributed Perl Documentation Promises::Promise(3)

Promises::Promise - An implementation of Promises in Perl

version 0.94

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.

"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 "then" on the proxied Promises::Deferred instance.
"catch( $error )"
This calls "catch" on the proxied Promises::Deferred instance.
"done( $callback, $error )"
This calls "done" on the proxied Promises::Deferred instance.
"finally( $callback )"
This calls "finally" on the proxied Promises::Deferred instance.
"status"
This calls "status" on the proxied Promises::Deferred instance.
"result"
This calls "result" on the proxied Promises::Deferred instance.
"is_unfulfilled"
This calls "is_unfulfilled" on the proxied Promises::Deferred instance.
"is_fulfilled"
This calls "is_fulfilled" on the proxied Promises::Deferred instance.
"is_failed"
This calls "is_failed" on the proxied Promises::Deferred instance.
"is_in_progress"
This calls "is_in_progress" on the proxied Promises::Deferred instance.
"is_resolved"
This calls "is_resolved" on the proxied Promises::Deferred instance.
"is_rejected"
This calls "is_rejected" on the proxied Promises::Deferred instance.

Stevan Little <stevan.little@iinteractive.com>

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.

2014-12-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.