
net.pincette.rs.NeverCancel Maven / Gradle / Ivy
package net.pincette.rs;
import java.util.concurrent.Flow.Processor;
/**
* Blocks cancel signals from being propagated to the upstream.
*
* @param the value type
* @author Werner Donné
* @since 3.3
*/
public class NeverCancel extends PassThrough {
public static Processor neverCancel() {
return new NeverCancel<>();
}
@Override
protected void cancelling() {
// Protect upstream from being cancelled.
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy