Members
onAny :function
Registers an onAny function
onError :function
Registers an onError function
onSuccess :function
Registers an onSuccess function
Methods
Add(p_options)
Add a set of callbacks
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p_options |
object |
Properties
|
catch(p_fn)
Promise-looking OnError add.
Parameters:
Name | Type | Description |
---|---|---|
p_fn |
function |
Clear()
Removes all callback handlers
finally(p_fn)
Promise-looking OnAny add.
Parameters:
Name | Type | Description |
---|---|---|
p_fn |
function |
OnError(…args)
Call all error handlers with provided arguments, then all 'any'
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
any |
<repeatable> |
OnSuccess(…args)
Call all success handlers with provided arguments, then all 'any'
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
any |
<repeatable> |
then(p_fn)
Promise-looking OnSuccess add.
Parameters:
Name | Type | Description |
---|---|---|
p_fn |
function |