27 unsubscriber(std::move(unsubscriber))
bool expired() const noexcept
Returns true if the subscription is no longer active, false otherwise.
std::function< void()> unsubscribe_type
Unsubscribe function object type.
~subscription()
Unsubscribes the subscriber and destructs the subscription.
void unsubscribe()
Unsubscribes the subscriber.
subscription(std::weak_ptr< void > &&subscriber, unsubscribe_type &&unsubscriber)
Constructs a subscription.
Publish-subscribe messaging.
std::function< void(const T &)> subscriber
Subscriber function object type.