asio-grpc v1.4.0
Asynchronous gRPC with Asio/unified executors
|
Client-side function object to read initial metadata for RPCs. More...
#include <agrpc/rpc.hpp>
Public Member Functions | |
template<class Responder , class CompletionToken = agrpc::DefaultCompletionToken> | |
auto | operator() (Responder &responder, CompletionToken &&token={}) const noexcept(detail::IS_NOTRHOW_GRPC_INITIATE_COMPLETION_TOKEN< CompletionToken >) |
Read initial metadata. More... | |
Client-side function object to read initial metadata for RPCs.
The examples below are based on the following .proto file:
|
inlinenoexcept |
Read initial metadata.
Request notification of the reading of the initial metadata.
This call is optional, but if it is used, it cannot be used concurrently with or after the read method.
Side effect:
Example:
responder | grpc::ClientAsyncResponseReader , grpc::ClientAsyncReader , grpc::ClientAsyncWriter or grpc::ClientAsyncReaderWriter |
token | A completion token like asio::yield_context or the one created by agrpc::use_sender . The completion signature is void(bool) . true indicates that the metadata was read, false when the call is dead. |