## Uses of Interface
org.apache.commons.lang3.function.FailableRunnable

- Packages that use FailableRunnable
  Package | Description
  --- | ---
  org.apache.commons.lang3.function | Provides functional interfaces to complement those in `java.lang.function` and utilities for working with Java 8 lambdas.

- - ### Uses of FailableRunnable in org.apache.commons.lang3.function

    Methods in org.apache.commons.lang3.function with parameters of type FailableRunnable
    Modifier and Type | Method and Description
    --- | ---
    `static Runnable` | Failable.`asRunnable(FailableRunnable<?> runnable)` Converts the given `FailableRunnable` into a standard `Runnable`.
    `static <E extends Throwable> void` | Failable.`run(FailableRunnable<E> runnable)` Runs a runnable and rethrows any exception as a `RuntimeException`.
    `static void` | Failable.`tryWithResources(FailableRunnable<? extends Throwable> action, FailableConsumer<Throwable,? extends Throwable> errorHandler, FailableRunnable<? extends Throwable>... resources)` A simple try-with-resources implementation, that can be used, if your objects do not implement the `AutoCloseable` interface.
    `static void` | Failable.`tryWithResources(FailableRunnable<? extends Throwable> action, FailableConsumer<Throwable,? extends Throwable> errorHandler, FailableRunnable<? extends Throwable>... resources)` A simple try-with-resources implementation, that can be used, if your objects do not implement the `AutoCloseable` interface.
    `static void` | Failable.`tryWithResources(FailableRunnable<? extends Throwable> action, FailableRunnable<? extends Throwable>... resources)` A simple try-with-resources implementation, that can be used, if your objects do not implement the `AutoCloseable` interface.
    `static void` | Failable.`tryWithResources(FailableRunnable<? extends Throwable> action, FailableRunnable<? extends Throwable>... resources)` A simple try-with-resources implementation, that can be used, if your objects do not implement the `AutoCloseable` interface.

Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.