@PublicEvolving @FunctionalInterface public interface ThrowingRunnable<E extends Throwable>
Runnable, this interface is used to capture a block of code to be executed. In contrast to
Runnable, this interface allows throwing checked exceptions.
|Modifier and Type||Method and Description|
The work method.
void run() throws E extends Throwable
static Runnable unchecked(ThrowingRunnable<?> throwingRunnable)
Runnablewhich throws all checked exceptions as unchecked.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.