public final class SingleInterop
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.Single<T> |
fromFuture(java.util.concurrent.CompletionStage<T> future)
Returns a Single that emits the value of the CompletionStage, its error or
NoSuchElementException if it signals null.
|
static <T> io.reactivex.functions.Function<io.reactivex.Single<T>,java.util.concurrent.CompletionStage<T>> |
get()
Returns a CompletionStage that signals the success value or error of the
source Single.
|
static <T> io.reactivex.functions.Function<io.reactivex.Single<T>,java.util.stream.Stream<T>> |
toStream()
Returns a blocking Stream of the single success value of the source Single.
|
public static <T> io.reactivex.functions.Function<io.reactivex.Single<T>,java.util.concurrent.CompletionStage<T>> get()
T - the value typeSingle.to()public static <T> io.reactivex.functions.Function<io.reactivex.Single<T>,java.util.stream.Stream<T>> toStream()
T - the value typeSingle.to()public static <T> io.reactivex.Single<T> fromFuture(java.util.concurrent.CompletionStage<T> future)
T - the value typefuture - the source CompletionStage instance