asio-grpc v1.5.0
Asynchronous gRPC with Asio/unified executors
|
Function object to initiate gRPC tag-based functions. More...
#include <agrpc/grpcInitiate.hpp>
Public Member Functions | |
template<class InitiatingFunction , class CompletionToken = agrpc::DefaultCompletionToken> | |
auto | operator() (InitiatingFunction initiating_function, CompletionToken &&token={}) const |
Initiate a gRPC tag-based function. More... | |
Function object to initiate gRPC tag-based functions.
|
inline |
Initiate a gRPC tag-based function.
This function can be used to lift tag-based gRPC functions that are not covered by agrpc/rpc.hpp
into the Asio/unifex world.
Example showing how to asynchronously wait for a gRPC channel to change its state:
initiating_function | Signature must be void(agrpc::GrpcContext&, void*) . |
token | A completion token like asio::yield_context or the one created by agrpc::use_sender . The completion signature is void(bool) . |