Class

DexPromise

Description [src]

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

DexPromise is a convenient DexFuture for prpoagating a result or rejection in appliction and library code.

Use this when there is not a more specialized DexFuture for your needs to propagate a result or rejection to the caller in an asynchronous fashion.

Hierarchy

hierarchy this DexPromise ancestor_0 DexFuture ancestor_0--this ancestor_1 DexObject ancestor_1--ancestor_0

Ancestors

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_boxed
No description available.

since: 0.10

dex_promise_resolve_double
No description available.

dex_promise_resolve_fd

Resolves the promise to fd.

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.

dex_promise_resolve_variant

If variant is floating, its reference is consumed.

since: 0.8

Methods inherited from DexFuture (24)

Please see DexFuture for a full list of methods.

Methods inherited from DexObject (2)
dex_ref

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

dex_unref

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