TensorFlow Serving C++ API Documentation
Public Member Functions | Friends | List of all members
tensorflow::serving::EventBus< E >::Subscription Class Reference

#include <event_bus.h>

Public Member Functions

 ~Subscription ()
 Unsubscribes the subscriber.
 

Friends

class EventBus
 

Detailed Description

template<typename E>
class tensorflow::serving::EventBus< E >::Subscription

Subscription is an RAII object and tracks the lifecycle of a single subscription to an EventBus. Upon destruction, it automatically Unsubscribes from the originating EventBus.

Note that Subscription only maintains weak_ptr references to the EventBus, such that the EventBus and Subscriptions can be safely destructed in any order. Subscription is not an owner of EventBus.

Definition at line 74 of file event_bus.h.


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