Task.returnValue

Sets task's result to result (by copying it) and completes the task.

If result is null then a #GValue of type G_TYPE_POINTER with a value of null will be used for the result.

This is a very generic low-level method intended primarily for use by language bindings; for C code, gio.task.Task.returnPointer and the like will normally be much easier to use.

class Task
void
returnValue

Parameters

result gobject.value.Value

the #GValue result of a task function