Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.x: Expose Single.lift() #3790

Merged
merged 1 commit into from
Mar 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/main/java/rx/Single.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ public interface OnSubscribe<T> extends Action1<SingleSubscriber<? super T>> {
* @return a Single that is the result of applying the lifted Operator to the source Single
* @see <a href="https://github.com/ReactiveX/RxJava/wiki/Implementing-Your-Own-Operators">RxJava wiki: Implementing Your Own Operators</a>
*/
private <R> Single<R> lift(final Operator<? extends R, ? super T> lift) {
// This method is private because not sure if we want to expose the Observable.Operator in this public API rather than a Single.Operator

@Experimental
public final <R> Single<R> lift(final Operator<? extends R, ? super T> lift) {
return new Single<R>(new Observable.OnSubscribe<R>() {
@Override
public void call(Subscriber<? super R> o) {
Expand Down