TaskHandle.state

TaskState state() @safe

Query the current state of the task.

Returns

The current TaskState, or CANCELLED if the handle is invalid.