Class
DexFuture
Constructors
dex_future_all
Creates a new DexFuture
that will resolve or reject when all futures
either resolve or reject.
dex_future_all_race
Creates a new DexFuture
that will resolve when all futures resolve
or reject as soon as the first future rejects.
dex_future_any
Creates a new DexFuture
that will resolve when any dependent future
resolves, providing the same result as the resolved future.
dex_future_first
Creates a new DexFuture
that resolves or rejects as soon as the
first dependent future resolves or rejects, sharing the same result.
dex_future_firstv
Creates a new DexFuture
that resolves or rejects as soon as the
first dependent future resolves or rejects, sharing the same result.
dex_future_new_for_errno
Creates a new rejected future using errno_
as the value
of errno for the GError.
since: 0.4
dex_future_new_for_pointer
Creates a new DexFuture
that is resolved with pointer
as a G_TYPE_POINTER
.
dex_future_new_infinite
Creates an infinite future that will never resolve or reject. This can be useful when you want to mock a situation of “run forever” unless another future rejects or resolves.
since: 0.4
Instance methods
dex_await_pointer
Calls dex_await()
and returns the value of g_value_get_pointer(),
otherwise error
is set if the future rejected.
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