Package jenkins.util

Interface ThrowingRunnable<T extends Throwable>

Type Parameters:
T - the checked exception type, or might be RuntimeException
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 ThrowingRunnable<T extends Throwable>
Represents an operation that does not return a result. Similar to Runnable but can throw a checked exception. Similar to ThrowingCallable but does not return a value.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Runs this operation.
  • Method Details

    • run

      void run() throws T
      Runs this operation.
      Throws:
      T - if unable to run