type

TaskHandler

type TaskHandler[Input, Output any] = core.TaskHandler[Input, Output]

A compiled typed durable task function.

Source ridu.go:191

contextTaskContext
The leased attempt, cancellation context, identity, and LocalAPI.
inputInput
Strictly decoded task input for this definition.

Returns (Output, error) Typed output, or a retryable/terminal error.

Handlers must honor cancellation and make external side effects idempotent because a process crash or lease expiry can cause another attempt.