olp-cpp-sdk
1.21.0
|
Cancels service requests. More...
#include <CancellationToken.h>
Public Types | |
using | CancelFuncType = std::function< void()> |
An alias for the cancellation function. | |
Public Member Functions | |
CancellationToken (CancelFuncType func) | |
Creates the CancellationToken instance. More... | |
void | Cancel () const |
Cancels the current operation and calls the func_ instance. | |
Cancels service requests.
|
explicit |
Creates the CancellationToken
instance.
func | The operation that should be used to cancel the ongoing operation. |