Module: vertx-js/promise

Classes

Promise

Methods

(static) Promise.failedPromise(failureMessage) → {Promise}

Create a failed promise with the specified failureMessage.
Parameters:
Name Type Description
failureMessage string the failure message
Source:
Returns:
the promise
Type
Promise

(static) Promise.promise() → {Promise}

Create a promise that hasn't completed yet
Source:
Returns:
the promise
Type
Promise

(static) Promise.succeededPromise(result) → {Promise}

Created a succeeded promise with the specified result.
Parameters:
Name Type Description
result Object the result
Source:
Returns:
the promise
Type
Promise