Constructor

DexFuturewith_timeout

unstable since: 1.2

Declaration [src]

DexFuture*
dex_future_with_timeout (
  DexFuture* future,
  gint64 usec
)

Description [src]

Creates a new DexFuture that resolves or rejects with the same result as future, unless usec microseconds 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.
usec

Type: gint64

Number of microseconds.

Return value

Type: DexFuture

A DexFuture.

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