Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire Grpc: There is no way to wait for a connection to be established before proceeding #3167

Open
efemoney opened this issue Nov 5, 2024 · 0 comments

Comments

@efemoney
Copy link

efemoney commented Nov 5, 2024

Wire Grpc provides the execute(CoroutineScope) that internally launches a coroutine on IO to connect & read messages.

In our business logic we are also launching coroutines to read the incoming messages & send keep alive pings to our system, immediately after executing the call.

The problem is that there is no way currently to wait for the initial call to complete, ie some sort of callback that signifies a connection is properly established.

Ideally I'd run my pings after a successful connection but now I just run the pings unconditionally and handle if a pong doesnt get back within an arbitrary timeout.

Would be great if this could be supported so that instead I can just awaitConnected() or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant