run

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

Executes the specified task after the delay associated with this scope.

Return

a TaskHandle that can be used to control the scheduled task

Parameters

task

the block of code to execute