All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 subscriber,
            Consumer onError) {
        return subscribe(t -> subscriber.accept(t._1, t._2), onError);
    }
}

interface PoorMansTriStream extends TriEventStream {

    @Override
    default Subscription subscribe(
            TriConsumer subscriber,
            Consumer onError) {
        return subscribe(t -> subscriber.accept(t._1, t._2, t._3), onError);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy