Return an Observable that emits the emissions from a specified Observable if a condition evaluates to true, otherwise return an empty Observable. @param the result value typ
(Func0<Boolean> condition, Observable<? extends R> then)
| 155 | * Observable otherwise |
| 156 | */ |
| 157 | public static <R> Observable<R> ifThen(Func0<Boolean> condition, Observable<? extends R> then) { |
| 158 | return ifThen(condition, then, Observable.<R> empty()); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Return an Observable that emits the emissions from a specified Observable |
no outgoing calls