SubscriptionWatcher
SubscriptionWatcher
Helper to efficiently watch for new data in multiple subscriptions.
#include <subscriptionwatcher.h>
Public Types
Name | |
---|---|
enum | WaitResult { NEWDATA, DONE, ERROR} |
Public Functions
Name | |
---|---|
std::optional< std::unique_ptr< SubscriptionWatcher > > | construct(std::initializer_list< std::shared_ptr< VariantStreamSubscription » subscriptions) |
~SubscriptionWatcher() | |
bool | isValid() const |
WaitResult | wait() |
Public Types Documentation
enum WaitResult
Enumerator | Value | Description |
---|---|---|
NEWDATA | ||
DONE | ||
ERROR |
Public Functions Documentation
function construct
static std::optional< std::unique_ptr< SubscriptionWatcher > > construct(
std::initializer_list< std::shared_ptr< VariantStreamSubscription >> subscriptions
)
function ~SubscriptionWatcher
~SubscriptionWatcher()
function isValid
bool isValid() const
function wait
WaitResult wait()
Updated on 2024-11-06 at 17:10:29 +0000