Interface ThrowingRunnable<E extends Throwable>

  • All Known Subinterfaces:
    RunnableWithException
    All Known Implementing Classes:
    FutureTaskWithException
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @PublicEvolving
    @FunctionalInterface
    public interface ThrowingRunnable<E extends Throwable>
    Similar to a Runnable, this interface is used to capture a block of code to be executed. In contrast to Runnable, this interface allows throwing checked exceptions.