I’m trying to do below referencing the following a...
# rx
a
I’m trying to do below referencing the following article: https://blog.danlew.net/2015/03/02/dont-break-the-chain/
Copy code
fun <T> applySchedulers(): FlowableTransformer<T, T> {
        return FlowableTransformer {
            it.observeOn(mainScheduler).subscribeOn(computationScheduler)
        }
    }
I’m try to operate on ‘BehaviorProcessor<List<XXX>>’.
behaviorProcessor.compose(applySchedulers())
works but trying to assign the result to Flowable<List<XXX>> causes an error.
Copy code
Type Inference failed. Expected Type mismatch.
required: Flowable<List<XXX>>, found: Flowable<List<XXX>!>!
How do I resolve the type inference error?
Sorry. My bad. @ursus Rewriting the code today with a clear head. I don’t see the error anymore. I think I was mixing different types in the List<XXX> where the XXX type has very similar names. 😛 Anyway I still have an issue with the transformer but that is a different issue. Thanks.