every

fun every(interval: Duration, block: () -> Unit)(source)

Schedules a repeated background task.

Parameters

interval

The delay between executions.

block

The task to execute.