Alan Lee
10/18/2018, 10:12 PMfun <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.
Type Inference failed. Expected Type mismatch.
required: Flowable<List<XXX>>, found: Flowable<List<XXX>!>!
How do I resolve the type inference error?Alan Lee
10/19/2018, 3:44 PM