Dex.AsyncPair
Description: Reference for Dex.AsyncPair

### Class

# DexAsyncPair

unstable since: 1

#### Description

    final class Dex.AsyncPair : GObject.TypeInstance
    {
      /* No available fields */
    }

No description available.

Available since: 1

#### Hierarchy

#### Ancestors

- DexFuture
- DexObject

#### Constructors

###### dex_async_pair_new

No description available.

unstable since: 1

#### Instance methods

###### dex_async_pair_get_cancellable

Gets the cancellable for the async pair.

unstable since: 1

###### dex_async_pair_return_boolean

No description available.

unstable since: 1

###### dex_async_pair_return_boxed

Resolves `async_pair` with `instance`.

unstable since: 1

###### dex_async_pair_return_error

Rejects `async_pair` with `error`.

unstable since: 1

###### dex_async_pair_return_int64

No description available.

unstable since: 1

###### dex_async_pair_return_object

Resolves `async_pair` with a value of `instance`.

unstable since: 1

###### dex_async_pair_return_string

Resolves `async_pair` with `value`.

unstable since: 1

###### dex_async_pair_return_uint64

No description available.

unstable since: 1

###### dex_async_pair_return_variant

Resolves `async_pair` with `variant`.

unstable since: 1

###### dex_async_pair_set_cancel_on_discard

Sets whether or not the future should cancel the async operation when the future is discarded. This happens when no more futures are awaiting the completion of this future.

since: 0.4

##### Methods inherited from DexFuture (20)

###### dex_await

Suspends the current `DexFiber` and resumes when `future` has completed.

unstable since: 1

###### dex_await_boolean

Awaits on `future` and returns the gboolean result.

unstable since: 1

###### dex_await_boxed

Awaits on `future` and returns the `G_TYPE_BOXED` based result.

unstable since: 1

###### dex_await_double

Awaits on `future` and returns the result as an double.

unstable since: 1

###### dex_await_enum

Awaits on `future` and returns the enum result.

unstable since: 1

###### dex_await_flags

Awaits on `future` and returns the flags result.

unstable since: 1

###### dex_await_float

Awaits on `future` and returns the result as an float.

unstable since: 1

###### dex_await_int

Awaits on `future` and returns the result as an int.

unstable since: 1

###### dex_await_int64

Awaits on `future` and returns the result as an int64.

unstable since: 1

###### dex_await_object

Awaits on `future` and returns the `GObject`-based result.

unstable since: 1

###### dex_await_pointer

Calls `dex_await()` and returns the value of g_value_get_pointer(), otherwise `error` is set if the future rejected.

unstable since: 1

###### dex_await_string

Awaits on `future` and returns the string result.

unstable since: 1

###### dex_await_uint

Awaits on `future` and returns the result as an uint.

unstable since: 1

###### dex_await_uint64

Awaits on `future` and returns the result as an uint64.

unstable since: 1

###### dex_await_variant

Awaits on `future` and returns the `G_TYPE_VARIANT` based result.

since: 0.4

###### dex_future_disown

Disowns a future, allowing it to run to completion even though there may be no observer interested in the futures completion or rejection.

since: 0.4

###### dex_future_get_name

No description available.

unstable since: 1

###### dex_future_get_status

No description available.

unstable since: 1

###### dex_future_get_value

No description available.

unstable since: 1

###### dex_future_set_static_name

Sets the name of the future with a static/internal string.

unstable since: 1

##### Methods inherited from DexObject (2)

###### dex_ref

Acquires a reference on the given object, and increases its reference count by one.

unstable since: 1

###### dex_unref

Releases a reference on the given object, and decreases its reference count by one.

unstable since: 1