asio-grpc v3.1.0
Asynchronous gRPC with Asio/unified executors
|
Sender completion token. More...
#include <agrpc/use_sender.hpp>
Public Types | |
template<class T > | |
using | as_default_on_t = typename T::template rebind_executor< detail::ExecutorWithDefault< UseSender, typename T::executor_type > >::other |
Type alias to adapt an I/O object to use agrpc::UseSender as its default completion token type. More... | |
Sender completion token.
This completion token causes functions in this library to return a sender. Particularly useful for libunifex where senders are also awaitable:
Note when using libunifex or stdexec exclusively then agrpc::use_sender
is already the default completion token.
using agrpc::UseSender::as_default_on_t = typename T::template rebind_executor<detail::ExecutorWithDefault<UseSender, typename T::executor_type> >::other |
Type alias to adapt an I/O object to use agrpc::UseSender
as its default completion token type.
Only applicable to I/O objects of this library.