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>
,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
- Author:
- Graeme Rocher
-
Constructor Summary
ConstructorDescriptionAsyncSingleResultPublisher
(ExecutorService executor, Supplier<T> supplier) Constructor.AsyncSingleResultPublisher
(Supplier<T> supplier) Constructor. -
Method Summary