asio-grpc v3.4.0
Asynchronous gRPC with Asio/unified executors
|
The last argument to all async functions in this library is a CompletionToken. It can be used to customize how to receive notification of the completion of the asynchronous operation. Some examples:
agrpc::use_sender
causes functions in this library to return a Sender. They can for example be combined with unifex::task
to asynchronously process RPCs using co_await
. Note when using libunifex or stdexec exclusively then agrpc::use_sender
is already the default completion token:
Asio-grpc attempts to get the completion handler's associated allocator by calling asio::get_associated_allocator and uses to allocate intermediate storage, typically for the completion handler itself. Prior to invocation of the completion handler all storage is deallocated.
The associated allocator can be customized using asio::bind_allocator (since Boost.Asio 1.79):