Modifier and Type | Method and Description |
---|---|
static <T> Flux<T> |
flowPublisherToFlux(Flow.Publisher<T> publisher)
Return a
Flux from a java Flow.Publisher |
static <T> Flow.Publisher<T> |
publisherToFlowPublisher(Publisher<T> publisher)
Return a java
Flow.Publisher from a Flux |
public static <T> Flow.Publisher<T> publisherToFlowPublisher(Publisher<T> publisher)
Flow.Publisher
from a Flux
T
- the type of the publisherpublisher
- the source Publisher to convertFlow.Publisher
from the given Publisher
public static <T> Flux<T> flowPublisherToFlux(Flow.Publisher<T> publisher)
Flux
from a java Flow.Publisher
T
- the type of the publisherpublisher
- the source Publisher to convertFlux
from a java Flow.Publisher