Constructor

DexFuturefirstv

Declaration [src]

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

Description [src]

Creates a new DexFuture that resolves or rejects as soon as the first dependent future resolves or rejects, sharing the same result.

Parameters

futures 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 guint
 

The number of futures.

Return value

Returns: DexFuture
 

A DexFuture.

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