Skip to main content

Module WaitForClientConnection

Module WaitForClientConnection 

Source
Expand description

Await Cocoon’s gRPC connection without polling. GetConnectionNotify returns a shared tokio::sync::Notify that ConnectToSideCar fires once the handshake succeeds; WaitForClientConnection simply awaits it under tokio::time::timeout. If the sidecar is already connected when we enter (typical for the second-and-later callers) notified() returns immediately because notify_waiters has already fired.

BudgetMilliseconds remains the hard cap so call sites keep their existing behaviour for the pathological “Cocoon never starts” case.

Functions§

Fn