mutiny.zero.internal.DroppingTube Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mutiny-zero Show documentation
Show all versions of mutiny-zero Show documentation
Mutiny Zero is a minimal API for creating reactive-streams compliant publishers
package mutiny.zero.internal;
import java.util.concurrent.Flow;
public class DroppingTube extends TubeBase {
protected DroppingTube(Flow.Subscriber super T> subscriber) {
super(subscriber);
}
@Override
protected void handleItem(T item) {
if (outstandingRequests() > 0L) {
dispatchQueue.offer(item);
drainLoop();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy