Closed
Description
Describe the bug
If the withGRPCClient
API is called with an empty handleClient
closure then it is possible to hit the The client has stopped and can only be started once.
precondition in its internal state machine. The reason for this is that beginGracefulShutdown()
is called before runConnections()
.
To reproduce
Write a test that does this
try await GRPCClient.withGRPCClient(....) {}
Expected behaviour
We should handle this gracefully