vertx / io.vertx.reactivex.core / Vertx / setTimer

setTimer

open fun setTimer(delay: Long, handler: Handler<Long>): Long

Set a one-shot timer to fire after delay milliseconds, at which point handler will be called with the id of the timer.

Parameters

delay - the delay in milliseconds, after which the timer will fire

handler - the handler that will be called with the timer ID when the timer fires

Return
the unique ID of the timer