run

abstract infix fun run(task: () -> Unit): TaskHandle

Runs the specified task according to the configuration of this runner.

Return

a TaskHandle that can be used to control or query the scheduled task

Parameters

task

the block of code to execute