CallCancellation
interfaceWhat a responder is told when a call gives up on it.
Sent as the payload of the event named by
CallOptions.cancel, so a responder doing long
work can stop it instead of finishing for nobody.Properties
| Name | Type | Description |
|---|---|---|
detail? | string | The reason given to cancel(), or the signal's abort reason, as text. |
reason | "cancelled" | "aborted" | "timeout" | Why: "cancelled" by call.cancel(), "aborted" by the call's signal, or "timeout"
after CallOptions.timeoutMs without a correlated event. |
requestId | string | The id of the request event being abandoned, which the responder saw as event.id. |