T
- public class JDKReactiveStreamsPublisher<T>
extends java.lang.Object
implements org.reactivestreams.Publisher<T>
Constructor and Description |
---|
JDKReactiveStreamsPublisher() |
Modifier and Type | Method and Description |
---|---|
static <T> JDKReactiveStreamsPublisher<T> |
ofAsync(java.util.stream.Stream<T> stream,
java.util.concurrent.Executor exec)
This creates an asynchronous publisher that publishes on an external thread
|
static <T> JDKReactiveStreamsPublisher<T> |
ofSync(java.util.stream.Stream<T> stream)
This creates a synchronous publisher that publishes on the calling thread.
|
void |
subscribe(org.reactivestreams.Subscriber<? super T> s) |
public static <T> JDKReactiveStreamsPublisher<T> ofSync(java.util.stream.Stream<T> stream)
stream
- JDK Stream to turn into a Reactive Streams Publisherpublic static <T> JDKReactiveStreamsPublisher<T> ofAsync(java.util.stream.Stream<T> stream, java.util.concurrent.Executor exec)
stream
- JDK Stream to turn into a Reactive Streams Publisher