C++ Async Client Example - doesn't do anything asynchronously?

34 views
Skip to first unread message

Christopher Pisz

unread,
Nov 1, 2020, 9:11:32 PM11/1/20
to grpc.io
I am trying to learn how to use gRPC asynchronously in C++. Going over the client example at https://github.com/grpc/grpc/blob/v1.33.1/examples/cpp/helloworld/greeter_async_client.cc I don't see how anything asynchronous is being demonstrated. There is one and only one RPC call, and it blocks on the main thread until the server processes it and the result is sent back.

What I need to do is create a client that can make one RPC call, and then start another while waiting for the result of the first to come back from the server.

I've got no idea how to go about that.

Jeff Steger

unread,
Nov 5, 2020, 11:33:09 PM11/5/20
to Christopher Pisz, grpc.io
See this for an example of what you are looking for: 

--
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 grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/40cb4185-1987-40c2-b4c4-793146ac63een%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages