DuplexCoordinator.await

Block the current task until the peer responds to id (or timeout elapses). Returns the result, or throws McpException on error / timeout / channel close (failPending). Deregisters the waiter on the way out.

class DuplexCoordinator
@safe
Json
await
(
long id
,
Duration timeout = 60.seconds
)