Package org.forgerock.openig.reactive
Class ReactiveUtils
- java.lang.Object
-
- org.forgerock.openig.reactive.ReactiveUtils
-
public final class ReactiveUtils extends Object
Utility class for ReactiveX operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> io.reactivex.rxjava3.core.SingleConverter<T,Promise<T,NeverThrowsException>>
toPromise()
Converts a Single to a promise.
-
-
-
Method Detail
-
toPromise
public static <T> io.reactivex.rxjava3.core.SingleConverter<T,Promise<T,NeverThrowsException>> toPromise()
Converts a Single to a promise.- Type Parameters:
T
- the Type of the returned promise- Returns:
- a promise of the Single element.
-
-