Class AsyncSingleResultPublisher<T>
java.lang.Object
io.micronaut.core.async.publisher.AsyncSingleResultPublisher<T>
- Type Parameters:
T- The argument type
- All Implemented Interfaces:
Publishers.MicronautPublisher<T>,org.reactivestreams.Publisher<T>
public class AsyncSingleResultPublisher<T>
extends Object
implements Publishers.MicronautPublisher<T>
A
Publisher that uses an ExecutorService to emit a single result.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncSingleResultPublisher(ExecutorService executor, Supplier<T> supplier) Constructor.AsyncSingleResultPublisher(Supplier<T> supplier) Constructor. -
Method Summary
-
Constructor Details
-
AsyncSingleResultPublisher
Constructor.- Parameters:
executor- executorsupplier- type of supplier
-
AsyncSingleResultPublisher
Constructor.- Parameters:
supplier- type of supplier
-
-
Method Details
-
subscribe
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<T>
-