java.lang.Object
org.kink_lang.kink.internal.control.Control

public final class Control extends Object
Utility methods for control.
  • Method Details

    • runWrappingThrowable

      public static <T> T runWrappingThrowable(ThrowingFunction0<T> fun)
      Invokes fun wrapping Throwable by RuntimeException.
      Type Parameters:
      T - the result type.
      Parameters:
      fun - the function.
      Returns:
      the result of fun.
      Throws:
      RuntimeException - when fun throws any exception.