Hey grpc community, I am sorry if it's been asked. I did a very short research and didn't find the answer.
Is it possible for ClientConn <https://sourcegraph.com/github.com/grpc/grpc-go/-/blob/clientconn.go?L613> to expose a WaitForConnection API that blocks until connectivity becomes READY? something like ``` func (cc *ClientConn) WaitForConnection(cc *grpc.ClientConn, deadline time.Time) { ctx := context.Background() if deadline != time.Time{} { var cancel context.CancelFunc ctx, cancel = context.WithDeadline(ctx, deadline) defer cancel() } for { state := cc.GetState() if state == connectivity.Ready { return } if !cc.WaitForStateChange(ctx, state) { return } } } ``` yishu -- 戴翊書 Yi-Shu Tai Software Engineer @Dropbox -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAK%2B0oQG7_t8ShAzCu7ZLg6O86JL%3DtMUnM3fX9v%2BVTnYGf78CAg%40mail.gmail.com.
