[#CScheduler-scheduleEvery]
= xref:CScheduler.adoc[CScheduler]::scheduleEvery
:relfileprefix: ../
:mrdocs:

Repeat f until the scheduler is stopped&period; First run is after delta has passed once&period;

== Synopsis

Declared in `&lt;scheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e20c55a08)&rsqb;&rsqb;
void
scheduleEvery(
    xref:CScheduler/Function.adoc[Function] f,
    std::chrono::milliseconds delta);
----

== Description

The timing is not exact&colon; Every time f is finished, it is rescheduled to run again after delta&period; If you need more accurate scheduling, don&apos;t use this method&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| The task to run repeatedly&period;
| *delta*
| The interval to wait between runs&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
