in task.go [39:43]
func (t *Task[T]) State() State { t.mutex.RLock() defer t.mutex.RUnlock() return t.state }