Gio.Task.prototype.return_int
function return_int(result: Number(gssize)): void { // Gjs wrapper for g_task_return_int() }
Sets task's result to result and completes the task (see Gio.Task.prototype.return_pointer for more discussion of exactly what this means).
Since 2.36
- result
the integer (#gssize) result of a task function.