run

open infix override fun run(task: () -> Unit): TaskHandle

Executes the task repeatedly according to the delay and period.

Return

a TaskHandle that can be used to cancel the task

Parameters

task

the block of code to execute