Constructor

DexFuturewith_deadline

unstable since: 1.2

Declaration [src]

DexFuture*
dex_future_with_deadline (
  DexFuture* future,
  gint64 deadline
)

Description [src]

Creates a new DexFuture that resolves or rejects with the same result as future, unless deadline is reached first. If the deadline is reached 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.
deadline

Type: gint64

A deadline in usec in the monotonic clock.

Return value

Type: DexFuture

A DexFuture.

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