start

fun start(runnable: Runnable, delay: Long)

Starts a timer which will execute the provided Runnable after the provided delay. If the provided Runnable is already associated with a timer, the timer will be reset with the updated delay.

Parameters

runnable

The Runnable to be executed after the delay.

delay

The delay in milliseconds before executing the Runnable.