task‘s result to
task assumes ownership of)
and completes the task (see
g_task_return_pointer() for more
discussion of exactly what this means).
Note that since the task takes ownership of
error, and since the
task may be completed before returning from g_task_return_error(),
you cannot assume that
error is still valid after calling this.
g_error_copy() on the error if you need to keep a local copy
See also g_task_return_new_error().
Available since: 2.36
GErrorresult of a task function.
The instance takes ownership of the data, and is responsible for freeing it.