inline TaskState GetTaskState() const;
GetTaskState obtains the current state of the task.
Current state of the task.