Class CompletableFuturePublisher<T>

java.lang.Object
io.micronaut.core.async.publisher.CompletableFuturePublisher<T>
Type Parameters:
T - The type
All Implemented Interfaces:
Publishers.MicronautPublisher<T>, org.reactivestreams.Publisher<T>

@Internal public class CompletableFuturePublisher<T> extends Object implements Publishers.MicronautPublisher<T>
Adapts a CompletableFuture to a Publisher.
Since:
1.0
  • Method Details

    • subscribe

      public final void subscribe(org.reactivestreams.Subscriber<? super T> subscriber)
      Specified by:
      subscribe in interface org.reactivestreams.Publisher<T>