-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
Description
Migrating some of our code to RxJava 2, we've run into some issues around transformers due to the following signature change:
// 1
public <R> Observable<R> compose(Transformer<? super T, ? extends R> transformer) {
return ((Transformer<T, R>) transformer).call(this);
}
// 2
public final <R> Observable<R> compose(ObservableTransformer<T, R> composer) {
return wrap(composer.apply(this));
}Was this intentionally narrowed? If not, open to a PR to add back the ? super semantics?
Reactions are currently unavailable