zak.taccardi
02/02/2017, 8:56 PMViewHolder
within RecyclerView
? Would it be bad form to use a `Subject`/`Relay` (that's scoped to the containing ViewGroup/Fragment/Activity), which the ViewHolder
has a reference to?zak.taccardi
02/13/2017, 5:12 PMERR: stack=java.lang.NullPointerException: subscribeActual failed
@Throws(Throwable::class)
override fun onRun() {
//synchronous stream....
.subscribe(
{},
{ throw it } //I need this exception to be thrown to the wrapping `onRun` method
)
}
karolkowalski
02/24/2017, 12:19 PM@Test fun shouldBlowYourMind() {
Observable.empty<Unit>().test().assertEmpty()
}
java.lang.AssertionError: Completed! (latch = 0, values = 0, errors = 0, completions = 1)
d.medina
03/07/2017, 6:47 PMgvoltr
03/12/2017, 2:36 PMjw
03/16/2017, 10:21 PMnetworkLoad()
.subscribeOn(io())
.startWith(cacheCompute())
.subscribeOn(computation())
.observeOn(mainThread())
anstaendig
03/20/2017, 6:09 PMzak.taccardi
03/21/2017, 11:23 PMkiwiandroiddev
03/22/2017, 12:00 AMfun <T1, T2, T3, R> asyncCombineLatest(o1: Observable<T1>,
o2: Observable<T2>,
o3: Observable<T3>,
asyncCombineFunc: (T1, T2, T3) -> Observable<R>): Observable<R> =
Observable.combineLatest(o1, o2, o3) { a, b, c -> Triple(a, b, c) }
.flatMap { bundle ->
val (a, b, c) = bundle
asyncCombineFunc(a, b, c)
}
nitrog42
03/23/2017, 5:16 PMzak.taccardi
03/23/2017, 7:49 PMdamian
03/23/2017, 10:13 PMvincentm
03/30/2017, 8:34 AMmutexkid
03/30/2017, 8:05 PMmg6maciej
04/02/2017, 11:01 AMborboss
04/04/2017, 12:52 PMbulwinkel
04/05/2017, 9:26 AMbulwinkel
04/05/2017, 10:32 AManstaendig
04/05/2017, 10:45 AMjw
04/05/2017, 2:11 PMMarc
04/09/2017, 5:14 PMlupajz
04/11/2017, 9:43 AMmingkangpan
04/12/2017, 9:51 PMgroupby
can never work, fortunately I herad this in some presentation that groupby require onComple to get called by previous observables, but where is this documented?aballano
04/12/2017, 9:55 PMrwachol
04/14/2017, 5:56 AMzak.taccardi
04/19/2017, 3:28 PMval intentions = ui.intentions()
.map {
fun handleUiInput(intention: Intention): Unit = when (intention) {
is Intention.BooleanPreferenceWithChange -> {
intention.preference.db.set(newValue = intention.change)
}
is Intention.NumberPreferenceWithChange -> {
taxDb.write(intention.change)
}
}
handleUiInput(it)
}
is there any better way to do a compile time type-safe when
over a sealed class
in an rx stream?jw
04/20/2017, 5:58 PMelizarov
04/20/2017, 7:35 PMkotlinx-coroutines-reactive
module, then actually writing all the Rx operators becomes quite a trivial endeavor. See here for details: https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/coroutines-guide-reactive.md#operatorsthomasnield
04/28/2017, 1:30 AMjohnl
04/30/2017, 12:18 PMjohnl
04/30/2017, 12:18 PMthomasnield
04/30/2017, 3:14 PMjohnl
05/01/2017, 8:46 AM