Issues tokens and cancels them all at once. Copies share the cancellation. More...
#include <GPSCancellation.h>
Public Member Functions | |
| GPSCancelSource () | |
| GPSCancelToken | token () const |
| bool | cancel () |
| bool | isCancelled () const |
Issues tokens and cancels them all at once. Copies share the cancellation.
Definition at line 31 of file GPSCancellation.h.
| GPSCancelSource::GPSCancelSource | ( | ) |
Definition at line 25 of file GPSCancellation.cc.
| bool GPSCancelSource::cancel | ( | ) |
Cancels every token of this source and runs their callbacks on this thread before returning. Returns true only for the call that cancelled. Safe to call from any thread.
Definition at line 34 of file GPSCancellation.cc.
|
nodiscard |
Definition at line 51 of file GPSCancellation.cc.
|
nodiscard |
Definition at line 29 of file GPSCancellation.cc.