schedule

fun schedule(delay: Long, unit: TimeUnit?, callback: Long.() -> Unit): Subscription

Runs the callback after the specified delay

Parameters

delay

the delay before running the callback

unit

time unit to use for the delay

callback

the callback to run after the delay