A scoped handle of scheduled event. More...
#include <ndn-cxx/util/scheduler.hpp>
Public Member Functions | |
ScopedEventId () noexcept=default | |
ScopedEventId (Scheduler &) noexcept | |
void | cancel () |
Cancel the operation. More... | |
CancelHandle | release () |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed. More... | |
A scoped handle of scheduled event.
Upon destruction of this handle, the event is canceled automatically. Most commonly, the application keeps a ScopedEventId as a class member field, so that it can cleanup its event when the class instance is destructed.
Definition at line 127 of file scheduler.hpp.
|
defaultnoexcept |
|
inlineexplicitnoexcept |
Use default construction instead.
Definition at line 138 of file scheduler.hpp.
|
inherited |
Cancel the operation.
Definition at line 65 of file cancel-handle.cpp.
|
inherited |
Release the operation so that it won't be cancelled when this ScopedCancelHandle is destructed.
Definition at line 71 of file cancel-handle.cpp.