timer

fun timer(delay: Long, unit: TimeUnit?): Observable<Long>

Returns an Observable that emits 0L after a specified delay, and then completes.

Return

an Observable that emits one item after a specified delay, and then completes

Parameters

delay

the initial delay before emitting a single 0L

unit

time units to use for delay

See also