# Class: CompositeFuture

## vertx-js/composite_future~ CompositeFuture

#### new CompositeFuture()

Source:
  - vertx-js/composite_future.js, line 29

### Methods

#### cause(index) → {todo}

Returns a cause of a wrapped future

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the wrapped future index

Source:
  - vertx-js/composite_future.js, line 62

##### Returns:

Type
  todo

#### failed(index) → {boolean}

Returns true if a wrapped future is failed

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the wrapped future index

Source:
  - vertx-js/composite_future.js, line 90

##### Returns:

Type
  boolean

#### isComplete(index) → {boolean}

Returns true if a wrapped future is completed

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the wrapped future index

Source:
  - vertx-js/composite_future.js, line 104

##### Returns:

Type
  boolean

#### result(index) → {Object}

Returns the result of a wrapped future

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the wrapped future index

Source:
  - vertx-js/composite_future.js, line 118

##### Returns:

Type
  Object

#### setHandler(handler) → {CompositeFuture}

##### Parameters:

Name | Type | Description
--- | --- | ---
`handler` | function |

Source:
  - vertx-js/composite_future.js, line 41

##### Returns:

Type
  CompositeFuture

#### size() → {number}

Source:
  - vertx-js/composite_future.js, line 132

##### Returns:

- the number of wrapped future
- Type
    number

#### succeeded(index) → {boolean}

Returns true if a wrapped future is succeeded

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | the wrapped future index

Source:
  - vertx-js/composite_future.js, line 76

##### Returns:

Type
  boolean