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.
Constructors
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).