v
Size: a a a
v
i
v
V
AD
V
R:
R:
R:
const users: Observable<Types.User[]> =
ajaxPost (host + "/users") (Types.usersReadRequest)
.pipe (
Rx.catchError (err => (console.log (err), of (err))),
Rx.map (({ response }) => response)
)
VS
i
i
NG
fun Single<String>.resolveCondition(): Single<String> {
return this.flatMap { value ->
if (checkCondition(value)) {
source().delay(DELAY, TimeUnit.MILLISECONDS).resolveCondition()
} else {
Single.just(value)
}
}
}
fun source(): Single<String> {
return Single.fromCallable{
source.value
}
}М
fun Single<String>.resolveCondition(): Single<String> {
return this.flatMap { value ->
if (checkCondition(value)) {
source().delay(DELAY, TimeUnit.MILLISECONDS).resolveCondition()
} else {
Single.just(value)
}
}
}
fun source(): Single<String> {
return Single.fromCallable{
source.value
}
}i
i
АК
АК
D