You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Wire Grpc provides the
execute(CoroutineScope)
that internally launches a coroutine onIO
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.The text was updated successfully, but these errors were encountered: