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.
Available since: | 3.32 |
Parameters
source_object |
GObject |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
cancellable |
GCancellable |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A |
|
The argument can be NULL . | |
user_data |
gpointer |
Closure data for |
|
The argument can be NULL . | |
The data is owned by the caller of the function. |
Return value
Returns: | IdeTask |
An |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |