c++ – Force GRPC Write operation

I’m coding a bidirectional rpc using grpc.
I’m using the asynchronous API. (which is not well documented)

The idea is to write the msg to the grpc::ClientAsyncReaderWriter< W, R > stream and then call the Read in while loop till getting a false status

If I write to the stream, the program will simply crash. The reason is the asynchronous API allows only “1 outstanding asynchronous write on the same side of the same stream without waiting for the completion queue notification“.

Is there a way to force/prioritize the write operation after making a read operation ?

Read more here: Source link