Module tasks

Module tasks 

Source
Expand description

Task capability implementation.

This module provides support for long-running tasks in MCP servers.

Tasks allow servers to execute long-running operations while providing progress updates and supporting cancellation.

Structsยง

TaskHandle
Handle for interacting with a running task.
TaskManager
Manager for coordinating tasks.
TaskService
Task service implementing the TaskHandler trait.
TaskState
Internal state for a running task.