Untitled
unknown
kotlin
3 years ago
270 B
10
Indexable
Observable.just(5L, 4L, 3L, 2L, 1L) .flatMap { second: Long -> Observable.just("Событие было задержано на $second сек.") .delay(second, TimeUnit.SECONDS) }.subscribe { x -> println(x) }
Editor is loading...