Repeat f until the scheduler is stopped. First run is after delta has passed once.

Synopsis

Declared in <scheduler.h>

[[requires_capability(0x7f2e20c55a08)]]
void
scheduleEvery(
    Function f,
    std::chrono::milliseconds delta);

Description

The timing is not exact: Every time f is finished, it is rescheduled to run again after delta. If you need more accurate scheduling, don't use this method.

Parameters

Name

Description

f

The task to run repeatedly.

delta

The interval to wait between runs.

Created with MrDocs