Dex.Future.anyv
Description: Reference for Dex.Future.anyv

### Constructor

# Dex Futureanyv

#### Declaration [src]

    DexFuture*
    dex_future_anyv (
      DexFuture* const* futures,
      guint n_futures
    )

#### Description [src]

Creates a new `DexFuture` that resolves when the first future resolves.

If all futures reject, then the `DexFuture` returned will also reject.

This constructor is renamed to `()` in language bindings.

#### Parameters

`futures`

  Type: An array of `DexFuture*`

  An array of futures.

  The length of the array is specified in the `n_futures` argument.
  The data is owned by the caller of the function.

`n_futures`

  Type: `guint`

  The number of futures.

#### Return value

Type: `DexFuture`

A `DexFuture`.

The caller of the function takes ownership of the data, and is responsible for freeing it.