reactor-core / reactor.core.publisher / org.reactivestreams.Publisher

Extensions for org.reactivestreams.Publisher

toFlux

fun <T : Any> Publisher<T>.toFlux(): Flux<T>

Extension to convert any Publisher of T to a Flux.

toMono

fun <T> Publisher<T>.toMono(): Mono<T>

Extension to convert any Publisher of T to a Mono that only emits its first element.