Task.getCompleted

bool getCompleted()

Gets the value of #GTask:completed. This changes from false to true after the task’s callback is invoked, and will return false if called from inside the callback.

Returns

true if the task has completed, false otherwise.