public class MonoExtensionsKt
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
org.reactivestreams.Publisher<T> $receiver)
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
kotlin.jvm.functions.Function0<? extends T> $receiver)
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
T $receiver)
Extension for transforming an object to a Mono.
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
java.util.concurrent.CompletableFuture<? extends T> $receiver)
Extension for transforming an CompletableFuture to a Mono.
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
java.util.concurrent.Callable<T> $receiver)
@NotNull
public static <T> reactor.core.publisher.Mono<T> toMono(@NotNull
java.lang.Throwable $receiver)
Extension for transforming an exception to a Mono that completes with the specified error.
@NotNull public static <T,E extends Throwable> reactor.core.publisher.Mono<T> doOnError(@NotNull reactor.core.publisher.Mono<T> $receiver, @NotNull kotlin.reflect.KClass<E> exceptionType, @NotNull kotlin.jvm.functions.Function1<? super E,kotlin.Unit> onError)
Extension for Mono.doOnError providing a KClass based variant.
@NotNull public static <T,E extends Throwable> reactor.core.publisher.Mono<T> onErrorMap(@NotNull reactor.core.publisher.Mono<T> $receiver, @NotNull kotlin.reflect.KClass<E> exceptionType, @NotNull kotlin.jvm.functions.Function1<? super E,? extends java.lang.Throwable> mapper)
Extension for Mono.onErrorMap providing a KClass based variant.
@NotNull public static <T,E extends Throwable> reactor.core.publisher.Mono<T> onErrorResume(@NotNull reactor.core.publisher.Mono<T> $receiver, @NotNull kotlin.reflect.KClass<E> exceptionType, @NotNull kotlin.jvm.functions.Function1<? super E,? extends reactor.core.publisher.Mono<T>> fallback)
Extension for Mono.onErrorResume providing a KClass based variant.
@NotNull public static <T,E extends Throwable> reactor.core.publisher.Mono<T> onErrorReturn(@NotNull reactor.core.publisher.Mono<T> $receiver, @NotNull kotlin.reflect.KClass<E> exceptionType, @NotNull T value)
Extension for Mono.onErrorReturn providing a KClass based variant.
@NotNull
public static <T> reactor.core.publisher.Mono<T> switchIfEmpty(@NotNull
reactor.core.publisher.Mono<T> $receiver,
@NotNull
kotlin.jvm.functions.Function0<? extends reactor.core.publisher.Mono<T>> s)
Extension for Mono.switchIfEmpty accepting a function providing a Mono. This allows having a deferred execution with
the switchIfEmpty operator
switchIfEmpty