greenrobot / ObjectBoxRxJava

Optional RxJava 2 APIs for ObjectBox
Apache License 2.0
71 stars 8 forks source link

Use Single.flattenAsFlowable instead of custom emitter #1

Closed akarnokd closed 5 years ago

akarnokd commented 7 years ago

Based on our twitter exchange, this is a demonstration of a possible optimization: reusing single() and flattening via flattenAsFlowable() on the condition I understood the behavior of the Query source regarding finite sources.