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

switchIfEmpty

fun <T> Flux<T>.switchIfEmpty(s: () -> Publisher<T>): Flux<T>
Deprecated: Conflicts with Flux.switchIfEmpty(), use switchIfEmptyDeferred() extension

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

Author
Kevin Davin

Since
3.2