Generic time-based event scheduler. More...
#include <ndn-cxx/util/scheduler.hpp>
Public Member Functions | |
Scheduler (boost::asio::io_context &ioCtx) | |
~Scheduler () | |
void | cancelAllEvents () |
Cancel all scheduled events. More... | |
EventId | schedule (time::nanoseconds after, EventCallback callback) |
Schedule a one-time event after the specified delay. More... | |
Generic time-based event scheduler.
Definition at line 137 of file scheduler.hpp.
|
explicit |
Definition at line 70 of file scheduler.cpp.
|
default |
void ndn::scheduler::Scheduler::cancelAllEvents | ( | ) |
Cancel all scheduled events.
Definition at line 111 of file scheduler.cpp.
EventId ndn::scheduler::Scheduler::schedule | ( | time::nanoseconds | after, |
EventCallback | callback | ||
) |
Schedule a one-time event after the specified delay.
Definition at line 78 of file scheduler.cpp.