asio-grpc v3.1.0
Asynchronous gRPC with Asio/unified executors
agrpc::detail::ServerRPCContextBase< Responder > Class Template Reference

ServerRPC ServerContext base. More...

#include <agrpc/detail/server_rpc_context_base.hpp>

Inherits agrpc::detail::ServerContextBase< Responder >.

Inherited by agrpc::detail::ServerRPCResponderAndNotifyWhenDone< Responder, false >, and agrpc::detail::ServerRPCResponderAndNotifyWhenDone< Responder, IsNotifyWhenDone >.

Public Member Functions

auto & context ()
 Get the underlying ServerContext
 
const auto & context () const
 Get the underlying ServerContext (const overload)
 
void cancel () noexcept
 Cancel this RPC. More...
 

Detailed Description

template<class Responder>
class agrpc::detail::ServerRPCContextBase< Responder >

ServerRPC ServerContext base.

Since
2.6.0

Member Function Documentation

◆ cancel()

template<class Responder >
void agrpc::detail::ServerRPCContextBase< Responder >::cancel ( )
inlinenoexcept

Cancel this RPC.

Effectively calls context().TryCancel().

Thread-safe