Florina Muntenescu
Jul 20, 2017 · 1 min read

If there’s no data to match the query, the result would be null. Since Flowable does not support null values, it just doesn’t emit anything. Your proposed solution sounds similar to having an Option type. The problem is that there are too many Option types out there; even more, a lot of times developers have their own implementation of Option. Therefore, which Option is the best option? There’s already a bug opened to have a way of supporting this. I’ll make sure to update the post once the bug is fixed.

For now, feel free to return a List and then handle the case where the List is empty with your own solution.

)

    Florina Muntenescu

    Written by

    Android Developer Advocate @Google