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