Task.returnValue

void returnValue(gobject.value.Value result = null)

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.

Parameters

resultthe #GValue result of a task function