type

TaskHandler

A compiled typed durable task function.

Properties

PropertyTypeDescription
contextTaskContextThe leased attempt, cancellation context, identity, and LocalAPI.
inputInputStrictly decoded task input for this definition.

Returns

Typed output, or a retryable/terminal error.

(Output, error)

How it works

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

Full signature

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

Source ridu.go:250