Task.returnErrorIfCancelled

Checks if @task's #GCancellable has been cancelled, and if so, sets @task's error accordingly and completes the task (see g_task_return_pointer() for more discussion of exactly what this means).

Return: %TRUE if @task has been cancelled, %FALSE if not

class Task
bool
returnErrorIfCancelled
()

Meta

Since

2.36