Task.returnErrorIfCancelled

Checks if task's gio.Cancellable has been cancelled, and if so, sets task's error accordingly and completes the task (see Task.returnPointer for more discussion of exactly what this means).

class Task
bool
returnErrorIfCancelled
()

Return Value

Type: bool

TRUE if task has been cancelled, FALSE if not

Meta

Since

2.36