method
TypedTask.Cancel
func (task TypedTask[Input, Output]) Cancel(
ctx context.Context,
application *App,
id string,
) errorCancel atomically prevents a queued task from starting and fences a running attempt so its later heartbeat/completion cannot win.