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 void
static CompletableFuture
<Void> runAsync
(ThrowingRunnable runnable, Executor executor) static Runnable
runnable
(ThrowingRunnable runnable) static <T> CompletableFuture
<T> supplyAsync
(ThrowingSupplier<T> supplier, Executor executor)
-
Method Details
-
func
-
consumer
-
runnable
-
supplyAsync
-
runAsync
-
propagateIfUnchecked
-