IJsPromise Methods |
The IJsPromise type exposes the following members.
Name | Description | |
---|---|---|
Catch(ActionObject) |
Appends the rejection handler to the promise.
| |
Catch(FuncObject, Object) |
Appends the rejection handler to the promise.
| |
Finally(ActionObject) |
Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).
| |
Finally(FuncObject, Object) |
Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).
| |
InvokeT(String, Object) |
Executes the function with the given methodName and the args in the
JavaScript object. This method blocks current thread execution until the function finishes
its execution. If the function raises an exception, then a JsException with an error
message that describes the reason of the exception will be thrown. Same error message will be
printed in JavaScript Console.
(Inherited from IJsObject.) | |
InvokeAsync(String, Object) |
Asynchronously executes the function with the given methodName and the args
in the JavaScript object without blocking the current thread.
(Inherited from IJsObject.) | |
Then(ActionObject, ActionObject) |
Appends fulfillment and rejection handlers to the promise.
| |
Then(FuncObject, Object, FuncObject, Object) |
Appends fulfillment and rejection handlers to the promise.
|
Name | Description | |
---|---|---|
ToJsonString |
Converts the given JavaScript object into a JSON string.
(Defined by JsonExtensions.) |