Interface McpCancelationToken
Cooperative cancelation signal for an in-flight MCP JSON-RPC request.
Soklet does not interrupt handler threads when a client sends
notifications/cancelled. Long-running handlers can poll this token
and stop work at a safe application-defined point.
- Author:
- Mark Allen
-
Method Summary
-
Method Details
-
isCancelationRequested
Indicates whether the client has requested cancelation for the current MCP request.- Returns:
trueif cancelation was requested
-
getReason
-