Constructor

DexFuturewith_timeout_msec

unstable since: 1.2

Declaration [src]

DexFuture*
dex_future_with_timeout_msec (
  DexFuture* future,
  int msec
)

Description [src]

Creates a new DexFuture that resolves or rejects with the same result as future, unless msec milliseconds elapses first. If the timeout elapses first, the returned future rejects with DEX_ERROR_TIMED_OUT and discards future.

Available since: 1.2

Parameters

future

Type: DexFuture

A DexFuture.

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

Type: int

Number of milliseconds.

Return value

Type: DexFuture

A DexFuture.

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