BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Cancellable.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 namespace BeeeOn {
6 
12 class Cancellable {
13 public:
14  typedef Poco::SharedPtr<Cancellable> Ptr;
15 
16  virtual ~Cancellable();
17 
22  virtual void cancel() = 0;
23 };
24 
25 }
Any class that can be cancelled should inherit from this interface. This allows to maintain a set of ...
Definition: Cancellable.h:12
virtual void cancel()=0
Cancel the operation this object represents. It should exit immediatelly or at least as soon as possi...