reactor-kotlin-extensions / reactor.kotlin.core.publisher / reactor.core.publisher.Mono / switchIfEmpty

switchIfEmpty

fun <T> Mono<T>.switchIfEmpty(s: () -> Mono<T>): Mono<T>

Extension for Mono.switchIfEmpty accepting a function providing a Mono. This allows having a deferred execution with the switchIfEmpty operator

Author
Kevin Davin

Since
3.2