elizarov
05/03/2018, 2:14 PMjw
05/04/2018, 2:25 PMzak.taccardi
05/07/2018, 9:33 PMonError()
to pass expected error information is one of the biggest mistakes people make https://medium.com/@ZakTaccardi/api-design-handling-exceptions-84a143e32232ursus
05/07/2018, 11:57 PModay
05/08/2018, 11:07 AMPaul Woitaschek
05/11/2018, 8:33 AMDaniel
05/16/2018, 6:25 AMRx support
as I do not want to increase the original library’s method count. This is similar to how you can add optional Rx support
to Retrofit
and Retrofit can work with Rxjava
. I tried finding ways to do it but without results.
Can anyone who has worked on it help me out on how to set it up? Maybe some code examples or websites on how to do it?leosan
05/17/2018, 3:12 PMobject Main {
val items = Observable.just("a")
val test = items
.repeatWhen { it.concatMap { Observable.timer(1, TimeUnit.SECONDS) } }
val exec = CompositeDisposable()
@JvmStatic
fun main(args: Array<String>) {
exec.add(test
.subscribe {
print(it)
})
Thread.sleep(5000)
exec.dispose()
exec.add(test
.subscribe {
print(it)
})
Thread.sleep(5000)
}
}
Why after disposing the first time, it only subscribe once? The first time prints fine five times a
but after the dispose it runs only oncememphis
05/22/2018, 12:29 PMjw
05/25/2018, 1:43 PMPaul Woitaschek
05/28/2018, 6:23 PMarekolek
05/30/2018, 10:36 AMadams2
05/31/2018, 6:25 PMjw
06/13/2018, 7:35 PMJacob Applin
06/28/2018, 12:27 PMblakelee
06/28/2018, 9:03 PMObservable.fromIterable(list).flatMap{ fetchItem(item) }
does every item get fetched in parallel?ursus
06/30/2018, 12:19 AMdarkmoon_uk
07/11/2018, 11:10 AMblakelee
07/19/2018, 10:45 PMvar myVariable: Int = 0
private set(value) {
field = value
BehaviorSubject.onNext(BehaviorSubject.value)
}
toby
07/23/2018, 12:37 PMliminal
07/23/2018, 12:39 PMarekolek
07/27/2018, 12:59 PMfun isReadyToGo(
loginAnonymously: Single<TokenData>,
saveTokenData: (TokenData) -> Completable,
isLoggedIn: Single<Boolean>
): Completable {
return isLoggedIn
.filter { !it }
.flatMapSingleElement { loginAnonymously }
.flatMapCompletable(saveTokenData)
}
not sure if it's not harder to understand though 😛ursus
07/28/2018, 12:02 AMvar obs = map { success(it) }
if (idle != null) {
obs = obs.endWith(idle())
}
return obs.doOnError(LOG::e)
.onErrorReturn { t -> error(defaultErrorTransformer.throwableToType(t, customErrorTransformation)) }
.observeOn(AndroidSchedulers.mainThread())
.startWith(started())
ubu
07/29/2018, 9:50 PMursus
07/29/2018, 10:35 PMubu
08/10/2018, 10:16 AMursus
08/24/2018, 3:10 PMalexsullivan114
08/29/2018, 8:00 PMcombineLatest
but that emits as soon as any of the combined streams have a value? Right now it appears that combineLatest
will only emit once all of the streams have a value, and will then emit each time one of the streams is updated.ubu
08/30/2018, 2:57 PMursus
09/01/2018, 2:56 AMfooObservable()
a hungarian notation?ursus
09/01/2018, 2:56 AMfooObservable()
a hungarian notation?kioba
09/02/2018, 8:50 AM