FerdyRod
05/03/2018, 2:29 PMall()
operator. So, I have a list of events and I want to get true if all events meet a criteria. I have the following
repository.getEvents()
.flatMapIterable(events -> events)
.all(event -> event.status() == Status.COMPLETED)
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.observeOn(AndroidSchedulers.mainThread())
what happens is that if any of the events do not meet the conditions it returns false and I can handle it in the subscriber. But if it returns true the subscribers is not fired.. not even an error.