Untitled

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