SignalconnectSignalconnect_SignalemitGets the kind of block.
The kind of block relates to what situations the block would be executed such as for handling a future resolution, rejection, or both.
the Dex.BlockKind associated with the block
Gets the scheduler to use when executing a block.
the Dex.Scheduler associated with the block
Suspends the current Dex.Fiber and resumes when future has completed.
If future is completed when this function is called, the fiber will handle
the result immediately.
This function may only be called within a Dex.Fiber. To do otherwise will
return false and error set to Dex.Error.NO_FIBER.
It is an error to call this function in a way that would cause intermediate code to become invalid when resuming the stack. For example, if a foreach-style function taking a callback was to suspend from the callback, undefined behavior may occur such as thread-local-storage having changed.
true if the future resolved, otherwise false and error is set.
Awaits on future and returns the gboolean result.
If the result is not a gboolean, error is set.
the gboolean, or false and error is set
Awaits on future and returns the G_TYPE_BOXED based result.
the boxed result, or null and error is set.
Awaits on future and returns the result as an double.
The resolved value must be of type G_TYPE_DOUBLE or error is set.
an double, or 0 in case of failure and error is set.
Awaits on future and returns the enum result.
If the result is not a G_TYPE_ENUM, error is set.
the enum or 0 and error is set.
Awaits on future and returns the resulting file-descriptor.
The resolved value must be of type DEX_TYPE_FD or error is set.
a valid file descriptor or -1. you may get -1 without error being set if there was no rejected future.
Awaits on future and returns the flags result.
If the result is not a G_TYPE_FLAGS, error is set.
the flags or 0 and error is set.
Awaits on future and returns the result as an float.
The resolved value must be of type G_TYPE_FLOAT or error is set.
an float, or 0 in case of failure and error is set.
Awaits on future and returns the result as an int.
The resolved value must be of type G_TYPE_INT or error is set.
an int, or 0 in case of failure and error is set.
Awaits on future and returns the result as an int64.
The resolved value must be of type G_TYPE_INT64 or error is set.
an int64, or 0 in case of failure and error is set.
Awaits on future and returns the GObject.Object-based result.
the object, or null and error is set.
Calls Dex.Future.await and returns the value of
GObject.Value.get_pointer, otherwise error is set if the future
rejected.
a pointer or null
Awaits on future and returns the string result.
If the result is not a G_TYPE_STRING, error is set.
the string or null and error is set
Awaits on future and returns the result as an uint.
The resolved value must be of type G_TYPE_UINT or error is set.
an uint, or 0 in case of failure and error is set.
Awaits on future and returns the result as an uint64.
The resolved value must be of type G_TYPE_UINT64 or error is set.
an uint64, or 0 in case of failure and error is set.
Disowns a future, allowing it to run to completion even though there may be no observer interested in the futures completion or rejection.
This is a convenience function equivalent to calling Dex.Future.get_status and checking for Dex.FutureStatus.PENDING.
true if the future is still pending; otherwise false
This is a convenience function equivalent to calling Dex.Future.get_status and checking for Dex.FutureStatus.REJECTED.
true if the future was rejected with an error; otherwise false
This is a convenience function equivalent to calling Dex.Future.get_status and checking for Dex.FutureStatus.RESOLVED.
true if the future has successfully resolved with a value; otherwise false
Creates a new list model that will initially be empty and after
future resolves contain the items within it.
a new Dex.FutureListModel
Releases a reference on the given object, and decreases its reference count by one.
If it was the last reference, the resources associated to the instance are freed.
StaticallStaticall_StaticanyStaticcatchStaticcatch_StaticfinallyStaticfinally_StaticfirstStaticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_Staticnew_StaticthenStaticthen_
Dex.Block represents a callback closure that can be scheduled to run within a specific GLib.MainContext.
You create these by chaining futures together using Dex.Future.then, Dex.Future.catch, Dex.Future.finally and similar.