Class Unchecked
java.lang.Object
com.github.mizosoft.methanol.internal.function.Unchecked
Static functions that make it easier to mix checked exceptions with lambdas.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Consumer<T> consumer(ThrowingConsumer<T> consumer) static <T,R> Function <T, R> func(ThrowingFunction<T, R> func) static voidstatic CompletableFuture<Void> runAsync(ThrowingRunnable runnable, Executor executor) static Runnablerunnable(ThrowingRunnable runnable) static <T> Supplier<T> supplier(ThrowingSupplier<T> supplier) static <T> CompletableFuture<T> supplyAsync(ThrowingSupplier<T> supplier, Executor executor)
-
Method Details
-
func
-
consumer
-
supplier
-
runnable
-
supplyAsync
-
runAsync
-
propagateIfUnchecked
-