Untitled

Anonymous
kotlin
06/03/2022 9:52 AM
360 B
30
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...