SubscriptionWatcher

SubscriptionWatcher

SubscriptionWatcher

Helper to efficiently watch for new data in multiple subscriptions.

#include <subscriptionwatcher.h>

Public Types

Name
enumWaitResult { NEWDATA, DONE, ERROR}

Public Functions

Name
std::optional< std::unique_ptr< SubscriptionWatcher > >construct(std::initializer_list< std::shared_ptr< VariantStreamSubscription » subscriptions)
~SubscriptionWatcher()
boolisValid() const
WaitResultwait()

Public Types Documentation

enum WaitResult

EnumeratorValueDescription
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