How to gracefully stop ASYNC client?

16 views
Skip to first unread message

song...@hotmail.com

unread,
Jan 30, 2017, 12:02:16 AM1/30/17
to grpc.io
In the c++ example greeter_async_client2.cc, the client code is ended as follows.

    std::cout << "Press control-c to quit" << std::endl << std::endl;
    thread_.join();  //blocks forever

What is the graceful way to stop the work thread running in AsyncCompleteRpc()?
Reply all
Reply to author
Forward
0 new messages