Interface CheckedRunnable

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CheckedRunnable
    A checked version of Runnable.

    This is intended to be used with Unchecked.

    • Method Detail

      • run

        void run()
          throws java.lang.Throwable
        Performs an action.
        Throws:
        java.lang.Throwable - if an error occurs