blob: 399997be70e4ed46f04a634126b4d44c5ab45c32 [file] [log] [blame]
package harry.runner;
public interface ThrowingRunnable {
void run() throws Throwable;
static Runnable toRunnable(ThrowingRunnable runnable) {
return () -> {
try {
runnable.run();
} catch (Throwable var2) {
throw new RuntimeException(var2);
}
};
}
}