Manage interval timers - like the javascript setIntervalTimer API. More...
#include <IntervalTimer.h>
Classes | |
class | Adder |
Adder adds the given function object to the (for now default; later optionally explicit) IntervalTimer manager, and when its destroyed, the timer is removed. More... | |
class | Manager |
struct | RegisteredTask |
Public Types | |
using | TimerCallback = Function< void()> |
Manage interval timers - like the javascript setIntervalTimer API.
o Add and remove timers. o Support one-shot timers. o Timers run on arbitrary thread. o Can shut down manager at any time. o Can support multiple 'managers' - but then you have to add explicitly. Or use Adder object to add to default/global IdleTimer manager.
note TODO:
Definition at line 40 of file IntervalTimer.h.
using Stroika::Foundation::Execution::IntervalTimer::TimerCallback = Function<void ()> |
Note: these timers CAN throw, and SHOULD throw if interrupted, but the Idle Manager will 'eat' those exceptions.
Definition at line 48 of file IntervalTimer.h.