Class
IdeTask
Instance methods
ide_task_get_completed
Gets the “completed” property. This is TRUE after the callback used when
creating the task has been executed.
ide_task_get_return_on_cancel
Gets the return_on_cancel value, which means the task will return
immediately when the GCancellable is cancelled.
ide_task_propagate_object
Returns an object if the task completed with an object. Otherwise, NULL
is returned.
ide_task_return_boxed
This is similar to ide_task_return_pointer(), but allows the task to
know the boxed GType so that the result may be propagated to chained tasks.
ide_task_return_error_if_cancelled
Returns a new GError if the cancellable associated with the task
has been cancelled. If so, TRUE is returned, otherwise FALSE.
ide_task_set_check_cancellable
Setting check_cancellable to TRUE (the default) ensures that the
GCancellable used when creating the IdeTask is checked for cancellation
before propagating a result. If cancelled, an error will be returned
instead of the result.
ide_task_set_release_on_propagate
Setting this to TRUE (the default) ensures that the task will release all
task data and source_object references after executing the configured
callback. This is useful to ensure that dependent objects are finalized
in the thread-default GMainContext the task was created in.
ide_task_set_return_on_cancel
Setting return_on_cancel to TRUE ensures that the task will cancel
immediately when GCancellable::cancelled is emitted by the configured cancellable.
ide_task_set_source_tag
Sets the source tag for the task. Generally this is a function pointer of the function that created the task.
Methods inherited from GAsyncResult (4)
g_async_result_get_source_object
Gets the source object from a GAsyncResult.
g_async_result_get_user_data
Gets the user data from a GAsyncResult.
g_async_result_is_tagged
Checks if res has the given source_tag (generally a function
pointer indicating the function res was created by).
since: 2.34
g_async_result_legacy_propagate_error
If res is a GSimpleAsyncResult, this is equivalent to
g_simple_async_result_propagate_error(). Otherwise it returns
FALSE.
since: 2.34
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.