Utility class to trigger a task at a regular intervals.
The initial delay before the first execution of task.
The period between two executions of task.
The coroutine context in which Heartbeat is run.
The task to execute at regular intervals.
Start the execution of this heartbeat. Does nothing if it is already running and restart is false.
false
Stop the execution of this heartbeat.