return_error_if_cancelled


Description:

[ Version ( since = "2.36" ) ]
public bool return_error_if_cancelled ()

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

Parameters:

this

a Task

Returns:

true if this has been cancelled, false if not