| 54 | } |
| 55 | |
| 56 | ScheduledCall GuiExecutor::CallAt(const TimePoint& at, std::function<void ()> fn) |
| 57 | { |
| 58 | unsigned id = GetCallId(); |
| 59 | CallAsync([this, id, at, fn]() |
| 60 | { |
| 61 | m_scheduledCalls.Insert(GuiExecutor::CallData(id, at, fn)); |
| 62 | ResetTimer(); |
| 63 | }); |
| 64 | return MakeScheduledCall(id); |
| 65 | } |
| 66 | |
| 67 | ScheduledCall GuiExecutor::CallAfter(const Duration& interval, std::function<void ()> fn) |
| 68 | { |