Closed venusic closed 7 years ago
Error is a terminal event in the stream, in your case it's better to not throw error but rather emit some logical value ie boolean true/false
to distinguish error/normal cases in consumer.
Is there any other way?
Use objects in the stream to pass data, not onError. This isn't a question specific to RxBinding and I suggest you ask on the RxJava mailing list or StackOverflow with the 'rxjava' tag.
look this code:
The first click will call
onError
。Causing second click does not trigger anything. How do solve the problem?