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

net.pincette.rs.NeverCancel Maven / Gradle / Ivy

There is a newer version: 3.7.1
Show newest version
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