method

TypedTask.Result

Result loads and decodes one task created by this typed definition.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
application*AppThe application value.
idstringThe id value.

Returns

The declared result.

(TaskResult[Output], error)

Full signature

func (task TypedTask[Input, Output]) Result( ctx context.Context, application *App, id string, ) (TaskResult[Output], error)

Source core/task.go:270

Related types

  • TypedTask

    Compiled typed durable-task definition.

  • Input

    A presence-aware value used by nullable generated Go mutation fields.

  • App

    A resolved application bound to operation services.

  • TaskResult

    Typed local status view for one durable task.