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

switchIfEmptyDeferred

fun <T> Flux<T>.switchIfEmptyDeferred(s: () -> Publisher<T>): Flux<T>

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

Author
Kevin Davin

Author
Pavel Grigorenko

Since
1.1.3