Skip to content

Commit 6c9ac6c

Browse files
committed
Merge pull request #3790 from artem-zinnatullin/single-expose-lift
1.x: Expose Single.lift()
2 parents 213f8a8 + db14c09 commit 6c9ac6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/rx/Single.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,8 @@ public interface OnSubscribe<T> extends Action1<SingleSubscriber<? super T>> {
163163
* @return a Single that is the result of applying the lifted Operator to the source Single
164164
* @see <a href="https://github.com/ReactiveX/RxJava/wiki/Implementing-Your-Own-Operators">RxJava wiki: Implementing Your Own Operators</a>
165165
*/
166-
private <R> Single<R> lift(final Operator<? extends R, ? super T> lift) {
167-
// This method is private because not sure if we want to expose the Observable.Operator in this public API rather than a Single.Operator
168-
166+
@Experimental
167+
public final <R> Single<R> lift(final Operator<? extends R, ? super T> lift) {
169168
return new Single<R>(new Observable.OnSubscribe<R>() {
170169
@Override
171170
public void call(Subscriber<? super R> o) {

0 commit comments

Comments
 (0)