Skip to content

Commit

Permalink
Merge pull request #3790 from artem-zinnatullin/single-expose-lift
Browse files Browse the repository at this point in the history
1.x: Expose Single.lift()
  • Loading branch information
akarnokd committed Mar 23, 2016
2 parents 213f8a8 + db14c09 commit 6c9ac6c
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 6c9ac6c

Please sign in to comment.