asio-grpc v3.4.0
Asynchronous gRPC with Asio/unified executors
Loading...
Searching...
No Matches
agrpc::detail::ServerRPCContextBase< Responder > Class Template Reference

ServerRPC ServerContext base. More...

#include <agrpc/detail/server_rpc_context_base.hpp>

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.
 

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