method
TypedTask.Enqueue
Enqueue validates and durably stores typed input. The task must be the same slug/type contract registered in the running application's Config.Tasks.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
application | *App | The application value. |
input | Input | The input value. |
options | TaskEnqueueOptions | The options value. |
Returns
The declared result.
(TaskReceipt[Output], error)Full signature
func (task TypedTask[Input, Output]) Enqueue(
ctx context.Context,
application *App,
input Input,
options TaskEnqueueOptions,
) (TaskReceipt[Output], error)Related types
TypedTaskCompiled typed durable-task definition.
InputA presence-aware value used by nullable generated Go mutation fields.
AppA resolved application bound to operation services.
TaskEnqueueOptionsAdmission and scheduling controls for one durable task.
TaskReceiptStable typed handle returned after durable admission.