org.reactfx.PoorMansNStream Maven / Gradle / Ivy
package org.reactfx;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import org.reactfx.util.TriConsumer;
interface PoorMansBiStream extends BiEventStream {
@Override
default Subscription subscribe(
BiConsumer super A, ? super B> subscriber,
Consumer super Throwable> onError) {
return subscribe(t -> subscriber.accept(t._1, t._2), onError);
}
}
interface PoorMansTriStream extends TriEventStream {
@Override
default Subscription subscribe(
TriConsumer super A, ? super B, ? super C> subscriber,
Consumer super Throwable> onError) {
return subscribe(t -> subscriber.accept(t._1, t._2, t._3), onError);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy