Constructor
IdeTasknew
Declaration
IdeTask*
ide_task_new (
GObject* source_object,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Creates a new IdeTask
.
IdeTask
is similar to GTask
but provides some additional guarantees
such that by default, the source object, task data, and unused results
are guaranteed to be finalized in the GMainContext
associated with
the task itself.
Parameters
source_object
-
Type:
GObject
A
GObject
orNULL
.The argument can be NULL
.The data is owned by the caller of the function. cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the function. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
orNULL
.The argument can be NULL
. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: IdeTask
An IdeTask
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |