FastestMCP.Client.Request (fastest_mcp v0.2.0)

Copy Markdown View Source

Opaque handle for an asynchronous connected-client request.

Use FastestMCP.Client.await/2 to receive the result or FastestMCP.Client.cancel/2 to explicitly issue an MCP cancellation.

Summary

Functions

Waits for the request result.

Cancels the request with an optional human-readable reason.

Types

t()

@type t() :: %FastestMCP.Client.Request{
  client: FastestMCP.Client.t(),
  method: String.t(),
  owner: pid(),
  ref: reference(),
  request_id: String.t() | integer(),
  task_augmented: boolean()
}

Functions

await(request, timeout \\ :infinity)

Waits for the request result.

cancel(request, reason \\ nil)

Cancels the request with an optional human-readable reason.