Interface PublishedServerEventHandlerRpcHandler.PromiseJs
- All Superinterfaces:
Serializable
- Enclosing class:
PublishedServerEventHandlerRpcHandler
@JsDefinition
public static interface PublishedServerEventHandlerRpcHandler.PromiseJs
extends Serializable
How the outcome of a server method reaches the promise the client is
waiting on, as a JavaScript definition for
Element.executeJs(Class).
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.4
-
Method Summary
-
Method Details
-
resolve
Settles the promise with what the method returned.- Parameters:
promiseId- the promise the client is waiting onreturnValue- what the method returned
-
reject
Settles the promise with the failure of the method, which threw rather than returned.- Parameters:
promiseId- the promise the client is waiting on
-