Skip to main content

run_concurrently

Function run_concurrently 

Source
pub async fn run_concurrently<HF, MF, HE, ME>(
    http_future: HF,
    mcp_future: MF,
) -> Result<()>
where HF: Future<Output = Result<(), HE>> + Send, MF: Future<Output = Result<(), ME>> + Send, HE: Error + Send + Sync + 'static, ME: Error + Send + Sync + 'static,
Expand description

Run two independent futures concurrently (HTTP + MCP).