Class DelayedSubscriber<T>

java.lang.Object
io.micronaut.core.async.publisher.DelayedSubscriber<T>
Type Parameters:
T - The forwarded type
All Implemented Interfaces:
Processor<T,T>, Publisher<T>, Subscriber<T>, Subscription

@Internal public final class DelayedSubscriber<T> extends Object implements Processor<T,T>, Subscription
This is a Processor that does not change the stream, but allows the upstream Publisher and downstream Subscriber to be set independently in any order. If the upstream is set first, this class makes sure that any early completion is held back until the downstream has finished onSubscribe. If the downstream is set first, this class makes sure any demand is stored until the upstream becomes available.
Since:
4.4.0
Author:
Jonas Konrad