urwerk.source.reactor.FluxConverters.scala Maven / Gradle / Ivy
The newest version!
package urwerk.source.reactor
import reactor.adapter.JdkFlowAdapter
import reactor.core.publisher.Flux
import urwerk.source.Source
import java.util.concurrent.Flow
import urwerk.source.internal.FluxSource
object FluxConverters:
extension [A](source: Source[A])
def toFlux: Flux[A] =
JdkFlowAdapter.flowPublisherToFlux(
source.toPublisher)