Classes | |
| class | EventId |
| A handle for a scheduled event. More... | |
| class | Scheduler |
| Generic time-based event scheduler. More... | |
Typedefs | |
| using | EventCallback = std::function< void()> |
| Function to be invoked when a scheduled event expires. More... | |
| using | ScopedEventId = detail::ScopedCancelHandle< EventId > |
| A scoped handle for a scheduled event. More... | |
| using ndn::scheduler::EventCallback = typedef std::function<void()> |
Function to be invoked when a scheduled event expires.
Definition at line 48 of file scheduler.hpp.
| using ndn::scheduler::ScopedEventId = typedef detail::ScopedCancelHandle<EventId> |
A scoped handle for a 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 132 of file scheduler.hpp.