TaskHandle.isFinished

bool isFinished() @safe

Check if the task has finished (completed, failed, or cancelled).

Returns

true if the task will not execute any more code.