
net.pincette.rs.First Maven / Gradle / Ivy
package net.pincette.rs;
import java.util.concurrent.Flow.Processor;
/**
* Emits only the first value it receives.
*
* @param the value type.
* @author Werner Donn\u00e9
* @since 1.4
*/
public class First extends Until {
public First() {
super(v -> true);
}
public static Processor first() {
return new First<>();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy