Molybden API
Loading...
Searching...
No Matches
subscription.hpp
1
// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2
// TeamDev PROPRIETARY and CONFIDENTIAL.
3
// Use is subject to license terms.
4
5
#ifndef MOLYBDEN_SUBSCRIPTION_HPP
6
#define MOLYBDEN_SUBSCRIPTION_HPP
7
8
#include <functional>
9
10
namespace
molybden {
11
15
class
Subscription
{
16
public
:
17
virtual
~Subscription
() =
default
;
18
25
virtual
void
cancel
() = 0;
26
};
27
}
// namespace molybden
28
29
#endif
molybden::Subscription
A subscription allows you to unsubscribe from receiving events.
Definition
subscription.hpp:15
molybden::Subscription::cancel
virtual void cancel()=0
Cancels this subscription.
include
molybden
base
subscription.hpp