Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | List of all members
viam::sdk::GrpcContextObserver::Enable Class Reference

RAII helper for activating the gRPC context observer for the current thread. More...

#include <grpc_context_observer.hpp>

Public Member Functions

 Enable (const GrpcServerContext &context)
 

Detailed Description

RAII helper for activating the gRPC context observer for the current thread.

Instances of this class establish the thread-local context observer when constructed and automatically remove it when destroyed. This ensures proper cleanup even in the presence of exceptions.

Note
This class is for internal SDK use only. Users of the SDK do not need to instantiate this class directly.

The documentation for this class was generated from the following file: