| 191 | } |
| 192 | |
| 193 | ScheduledCall TimedExecutor::CallAt(const TimePoint& at, std::function<void ()> fn) |
| 194 | { |
| 195 | unsigned id = GetCallId(); |
| 196 | Add([this, id, at, fn]() |
| 197 | { |
| 198 | m_scheduledCalls.Insert(TimedExecutor::CallData(id, at, fn)); |
| 199 | }); |
| 200 | return MakeScheduledCall(id); |
| 201 | } |
| 202 | |
| 203 | ScheduledCall TimedExecutor::CallAfter(const Duration& interval, std::function<void ()> fn) |
| 204 | { |