public final class CompletableInterop
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.functions.Function<io.reactivex.Completable,java.util.concurrent.CompletionStage<T>> |
await()
Returns a CompletionStage that signals a null value or error if the Completable terminates.
|
static io.reactivex.Completable |
fromFuture(java.util.concurrent.CompletionStage<?> future)
Returns a Completable that terminates when the given CompletionStage terminates.
|
static <T> io.reactivex.functions.Function<io.reactivex.Completable,java.util.stream.Stream<T>> |
toStream()
Returns a blocking Stream that waits for the Completable's terminal event.
|
public static <T> io.reactivex.functions.Function<io.reactivex.Completable,java.util.concurrent.CompletionStage<T>> await()
T - the target value type (unused)Completable.to()public static <T> io.reactivex.functions.Function<io.reactivex.Completable,java.util.stream.Stream<T>> toStream()
T - the value typeCompletable.to()public static io.reactivex.Completable fromFuture(java.util.concurrent.CompletionStage<?> future)
future - the source CompletionStage instance