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

coursier.cache.internal.SigWinch Maven / Gradle / Ivy

The newest version!
package coursier.cache.internal;

import sun.misc.Signal;
import sun.misc.SignalHandler;

public final class SigWinch {

  public static void addHandler(Runnable runnable) {

    SignalHandler handler = new SignalHandler() {
      @Override
      public void handle(Signal arg0) {
        runnable.run();
      }
    };

    Signal.handle(new Signal("WINCH"), handler);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy