Module methanol

Class AsyncSubscriberAdapter<T,S extends Flow.Subscriber<? super List<ByteBuffer>>>

java.lang.Object
com.github.mizosoft.methanol.internal.flow.ForwardingSubscriber<List<ByteBuffer>>
com.github.mizosoft.methanol.internal.extensions.AsyncSubscriberAdapter<T,S>
Type Parameters:
T - the body type
S - the subscriber's type
All Implemented Interfaces:
HttpResponse.BodySubscriber<T>, Flow.Subscriber<List<ByteBuffer>>

public final class AsyncSubscriberAdapter<T,S extends Flow.Subscriber<? super List<ByteBuffer>>> extends ForwardingSubscriber<List<ByteBuffer>> implements HttpResponse.BodySubscriber<T>
Adapts a subscriber to a BodySubscriber where the body's completion need not be in accordance with onComplete or onError.