File tree Expand file tree Collapse file tree 2 files changed +0
-2
lines changed
src/main/kotlin/io/reactivex/rxkotlin Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import io.reactivex.Observable
6
6
import java.util.concurrent.Callable
7
7
import java.util.concurrent.Future
8
8
9
- @Deprecated(" This will be removed in a future release due to API confusion" )
10
9
fun <T : Any > T?.toMaybe (): Maybe <T > = Maybe .create { s -> if (this != null ) s.onSuccess(this ); s.onComplete() }
11
10
fun <T : Any > Future<T>.toMaybe (): Maybe <T > = Maybe .fromFuture(this )
12
11
fun <T : Any > Callable<T>.toMaybe (): Maybe <T > = Maybe .fromCallable(this )
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import io.reactivex.Single
6
6
import java.util.concurrent.Callable
7
7
import java.util.concurrent.Future
8
8
9
- @Deprecated(" This will be removed in a future release due to API confusion, use Single.just()" )
10
9
fun <T : Any > T.toSingle (): Single <T > = Single .just(this )
11
10
fun <T : Any > Future<T>.toSingle (): Single <T > = Single .fromFuture(this )
12
11
fun <T : Any > Callable<T>.toSingle (): Single <T > = Single .fromCallable(this )
You can’t perform that action at this time.
0 commit comments