|
tin
1.5.9
|
#include <coroutine.h>

Public Member Functions | |
| constexpr | periodic_ticks (tsm::tick_rep period) noexcept |
| constexpr | periodic_ticks (tick_count period) noexcept |
| sleep_ticks_awaitable | operator co_await () const noexcept |
| tsm::tick_rep | period () const noexcept |
Reusable periodic tick source for coroutine loops.
A task keeps the periodic_ticks object in its coroutine frame and awaits it once per loop iteration. The first await sleeps for the configured period; later awaits use the same period again. This gives periodic task code a stable local object without installing global timers or callbacks.
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |