cancelTask
Cancels a task on the server.
Sends a request to stop processing a task. Depending on the server implementation, a canceled task might be immediately terminated or gracefully completed.
Return
The response containing the canceled task with the updated status.
Parameters
id
The ID of the task to cancel.
Cancels a task on the server using a pre-constructed request object.
This method allows for more control over the request, including setting a custom request ID and complete cancellation parameters.
Return
The response containing the canceled task with the updated status.
Parameters
request
The fully constructed cancellation request containing request ID and task parameters.