Uses of Interface
de.scravy.bedrock.ThrowingRunnable
| Package | Description |
|---|---|
| de.scravy.bedrock |
-
Uses of ThrowingRunnable in de.scravy.bedrock
Methods in de.scravy.bedrock with parameters of type ThrowingRunnable Modifier and Type Method Description static voidControl. forever(ThrowingRunnable runnable)static voidControl. forever(Thread.UncaughtExceptionHandler exceptionHandler, ThrowingRunnable runnable)static voidControl. parallel(Executor executor, ThrowingRunnable... runnables)static voidTry. run(ThrowingRunnable runnable)Tries to run the given ThrowingRunnable and throws a RuntimeException in case it fails.static voidTry. run(String message, ThrowingRunnable runnable)Tries to run the given ThrowingRunnable and throws a RuntimeException with the given message in case it fails.static voidTry. unfailable(ThrowingRunnable runnable)Runs the given ThrowingRunnable and catches all Exceptions, reporting them to the uncaught exception handler.static voidContext. withContext(ArrayMap<String,Object> mappings, ThrowingRunnable f)