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