Interface CatchingRunnable

All Superinterfaces:
Runnable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CatchingRunnable extends Runnable
Extension of Runnable that never lets exceptions escape. Useful for things like scheduled executions using ScheduledExecutorService where an intermittent error should not cause the executor to suppress future executions (which is the default behavior).