Hello. Is there a way to have BehaviorSubject in K...
# multiplatform
a
Hello. Is there a way to have BehaviorSubject in KMM interop with RxJava2 ? I have interop extensions for Single and Observers, but not for BehaviorSubject and I can't figure out how to do it exactly. I need to use it in an RxJava
Copy code
combineLatest
method, but it returns an error
Copy code
no suitable method found for combineLatest(BehaviorSubject,Observable,(requestCo[...]Count) method Observable.combineLatest(Function,int,ObservableSource...) is not applicable (cannot infer type-variable(s) T#1,R#1 (argument mismatch; BehaviorSubject cannot be converted to Function)) method /* ... */
Code is in Java as well. It can't infer i guess the value as being an Integer ... but I can't figure out how to cast it or put an
<Integer>
somewhere .... Help?! ­čśä