cancel property

Future<Object?>? cancel
final

Completing this cancels the request: the server is sent notifications/cancelled (with the value as the reason when it is a string) and the call fails with an McpError. A response that arrives afterwards is ignored.

Implementation

final Future<Object?>? cancel;