Interface JsPromiseHandler

All Superinterfaces:
JsFunctionCallback

public interface JsPromiseHandler extends JsFunctionCallback
A JsFunctionCallback that is used as a JavaScript Promise handler.

If the handler returns a result then the subsequent promise is fulfilled with this result. If the handler throws an exception then the subsequent promise is rejected with this exception. If the handler returns a promise, then a future result or error from this promise is passed to the subsequent promise.

See Also: