schedule

inline fun schedule(delaySeconds: Float, crossinline task: () -> Unit): Timer.Task

Simplifies Timer API.

Return

callback to the task.

Parameters

delaySeconds

the execution will begin after this delay.

task

will be executed on the rendering thread.