# Module: vertx-js/future

### Classes

Future

### 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:
  - vertx-js/future.js, line 410

##### 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:
  - vertx-js/future.js, line 376

##### 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:
  - vertx-js/future.js, line 394

##### Returns:

the future

Type
  Future