T - The argument typepublic class AsyncSingleResultPublisher<T> extends java.lang.Object implements Publishers.MicronautPublisher<T>
Publisher that uses an ExecutorService to emit a single result.| Constructor and Description | 
|---|
| AsyncSingleResultPublisher(java.util.concurrent.ExecutorService executor,
                          java.util.function.Supplier<T> supplier)Constructor. | 
| AsyncSingleResultPublisher(java.util.function.Supplier<T> supplier)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | subscribe(org.reactivestreams.Subscriber<? super T> subscriber) | 
public AsyncSingleResultPublisher(java.util.concurrent.ExecutorService executor,
                                  java.util.function.Supplier<T> supplier)
executor - executorsupplier - type of supplierpublic AsyncSingleResultPublisher(java.util.function.Supplier<T> supplier)
supplier - type of supplier