Classes
Methods
(static) Future.failedFuture(failureMessage) → {Future}
Create a failed future with the specified failure message.
Parameters:
Name | Type | Description |
---|---|---|
failureMessage |
string | the failure message |
- Source:
Returns:
the future
- Type
- Future
(static) Future.future(handler) → {Future}
Create a future that hasn't completed yet and that is passed to the
handler
before it is returned.
Parameters:
Name | Type | Description |
---|---|---|
handler |
function | the handler |
- Source:
Returns:
the future.
- Type
- Future
(static) Future.succeededFuture(result) → {Future}
Created a succeeded future with the specified result.
Parameters:
Name | Type | Description |
---|---|---|
result |
Object | the result |
- Source:
Returns:
the future
- Type
- Future