A procedure given for it is called as (procedure task
source-object task-data cancellable).
The prototype for a task function to be run in a thread via
task:run-in-thread or task:run-in-thread-sync.
If the return-on-cancel flag is set on task, and cancellable
gets cancelled, then the <GTask> will be completed
immediately (as though task:return-error-if-cancelled? had been
called), without waiting for the task function to complete. However,
the task function will continue running in its thread in the background.
The function therefore needs to be careful about how it uses
externally-visible state in this case. See task:set-return-on-cancel? for more details.
Other than in that case, task will be completed when the
GTaskThreadFunc returns, not when it calls
a g_task_return_ function.
Passed: a <GTask>.
the <GTask>
Passed: a <GObject>.
task’s source object
Passed: a foreign pointer, or #f.
task’s task data
Passed: a <GCancellable>, or #f.
task’s <GCancellable>, or #f