type
TaskHandler
type TaskHandler[Input, Output any] func(
TaskContext,
Input,
) (Output, error)Compiled typed durable-task handler.
Handlers must honor cancellation and make external side effects idempotent because a process crash or lease expiry can cause another attempt.
Related types
TaskContextRequest-scoped view of one leased durable-task attempt.