JsonRpcCancellationConvention
Protocol-agnostic cancellation convention for JSON-RPC.
JSON-RPC itself does not define cancellation semantics; individual protocols layer their own convention on top (e.g. LSP uses $/cancelRequest with params { "id": <id> }). The ksrpc jsonrpc transport is configured with one of these to decide how to emit and interpret the cancellation notification.
The default is None, which leaves cancellation a local-only operation (caller CancellationException propagates, but nothing is sent to the remote side).
Inheritors
Types
Link copied to clipboard
Disabled: no cancellation notification is sent or listened for.
Link copied to clipboard
Notification-based convention. The transport sends a JSON-RPC notification (no id) with method and params { "id": <original request id> } when a caller is cancelled.