rad
2.0.0
|
#include <utils.hpp>
Public Member Functions | |
CancellationToken () | |
CancellationToken (const CancellationToken &)=default | |
CancellationToken & | operator= (const CancellationToken &)=default |
void | Cancel () |
bool | IsCancelled () const |
CancellationToken () | |
CancellationToken (const CancellationToken &)=default | |
CancellationToken & | operator= (const CancellationToken &)=default |
void | Cancel () |
bool | IsCancelled () const |
CancellationToken () | |
CancellationToken (const CancellationToken &)=default | |
CancellationToken & | operator= (const CancellationToken &)=default |
void | Cancel () |
bool | IsCancelled () const |
This class can be used to notify when a 'service' has been cancelled.
For example it is returned by the RouteReply() function to give the possibility to the user to check when a request has been cancelled and there is no point to keep waiting for a reply.
|
inline |
This constructor initialize the cancellation token to false.
|
default |
|
inline |
This constructor initialize the cancellation token to false.
|
default |
|
inline |
This constructor initialize the cancellation token to false.
|
default |
|
inline |
This method can be used to notify that the "service" has been cancelled.
|
inline |
This method can be used to notify that the "service" has been cancelled.
|
inline |
This method can be used to notify that the "service" has been cancelled.
|
inline |
This method can be used to check whether the "service" has been cancelled.
|
inline |
This method can be used to check whether the "service" has been cancelled.
|
inline |
This method can be used to check whether the "service" has been cancelled.
|
default |
|
default |
|
default |