Handle for a task owned by the connected MCP peer.
This is intentionally distinct from FastestMCP.BackgroundTask, which is
local work owned by the FastestMCP runtime, and from
FastestMCP.Client.Task, which belongs to a standalone client process.
Peer tasks are scoped to the exact server session that created them.
Summary
Functions
Requests cancellation of the peer-owned task.
Fetches the latest task state from the connected peer.
Builds a peer-task handle from validated attributes.
Registers a callback for peer task status changes.
Fetches the peer task's terminal result.
Waits for the peer task to reach a requested or terminal state.
Types
Functions
Requests cancellation of the peer-owned task.
Fetches the latest task state from the connected peer.
Builds a peer-task handle from validated attributes.
Registers a callback for peer task status changes.
Fetches the peer task's terminal result.
Waits for the peer task to reach a requested or terminal state.