func()

in task.go [48:55]


func (t *Task[T]) Cancel() bool {
	if !t.finished() {
		t.finish(StateCanceled, *new(T), ErrCanceled)
		return true
	}

	return false
}