Method factory
Promise factory
Returns an Object
(Instance of promise)
Method pipe
Pipes a reconciliation from parent
to child
Parameters:
parent must be an Object.
(Promise)
child must be an Object.
(Promise)
Returns an Undefined
(undefined)
Initiates processing a Promise
Parameters:
obj must be an Object.
(Promise instance)
arg can be of any type.
(Promise value)
state must be a Number.
(State, e.g. "1")
Returns an Object
(Promise instance)
States of a Promise
Constructor method Promise
Promise
Returns an Object
(Promise instance)
Setting constructor loop
Method process
Processes handlers
queue
Returns an Object
(Promise instance)
Method reject
Breaks a Promise
Parameters:
Returns an Object
(Promise instance)
Method resolve
Resolves a Promise
Parameters:
Returns an Object
(Promise instance)
Method then
Registers handler(s) for a Promise
Parameters:
success must be a Function.
([Optional] Success handler for eventual value)
failure must be a Function.
([Optional] Failure handler for eventual value)
Returns an Object
(New Promise instance)
Method delay
Returns a Function
(Delay method)