Skip to main content

start_drain_task

Function start_drain_task 

Source
pub fn start_drain_task()
Expand description

Spawn the background drain task inside the running Tokio runtime.

Must be called once at MCP server startup. Subsequent calls are no-ops; the first call wins and installs the channel sender into [TX].