Dex.FutureCallback
Description: Reference for Dex.FutureCallback

### Function

# DexFutureCallback

#### Declaration

    DexFuture*
    (* DexFutureCallback) (
      DexFuture* future,
      gpointer user_data
    )

#### Description [src]

A `DexFutureCallback` can be executed from a `DexBlock` as response to another `DexFuture` resolving or rejecting.

The callback will be executed within the scheduler environment the block is created within when using dex_future_then(), dex_future_catch(), dex_future_finally(), dex_future_all(), and similar functions.

This is the expected way to handle completion of a future when not using `DexFiber` via dex_scheduler_spawn().

This function is not directly available to language bindings.

#### Parameters

`future`

  Type: `DexFuture`

  A resolved or rejected `DexFuture`.

  The data is owned by the caller of the function.

`user_data`

  Type: `gpointer`

  Closure data associated with the callback.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `DexFuture`

No description available.

The data is owned by the called function.