method
TypedTask.Cancel
Cancel atomically prevents a queued task from starting and fences a running attempt so its later heartbeat/completion cannot win.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
application | *App | The application value. |
id | string | The id value. |
Returns
The declared result.
error