Dex.Promise
Description: Reference for Dex.Promise

### Class

# DexPromise

#### Description

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

No description available.

#### Hierarchy

#### Ancestors

- DexFuture
- DexObject

#### Constructors

###### dex_promise_new

No description available.

###### dex_promise_new_cancellable

Creates a new `DexPromise` that can propagate cancellation if the promise is discarded.

#### Instance methods

###### dex_promise_get_cancellable

Gets a `GCancellable` that will cancel when the promise has been discarded (and therefore result no longer necessary).

###### dex_promise_reject

Marks the promise as rejected, indicating a failure.

###### dex_promise_resolve

Sets the result for a `DexPromise`.

###### dex_promise_resolve_boolean

No description available.

###### dex_promise_resolve_double

No description available.

###### dex_promise_resolve_float

No description available.

###### dex_promise_resolve_int

No description available.

###### dex_promise_resolve_int64

No description available.

###### dex_promise_resolve_long

No description available.

###### dex_promise_resolve_object

No description available.

###### dex_promise_resolve_string

No description available.

###### dex_promise_resolve_uint

No description available.

###### dex_promise_resolve_uint64

No description available.

###### dex_promise_resolve_ulong

No description available.

##### Methods inherited from DexFuture (28)

Please see DexFuture for a full list of methods.