Package com.github.tonivade.purefun.core
Interface CheckedRunnable
- All Superinterfaces:
Recoverable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface represents a Runnable instance but it can throws any exception.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CheckedRunnableandThen(CheckedRunnable next) default voidexec()static <X extends Throwable>
CheckedRunnablestatic CheckedRunnableof(CheckedRunnable runnable) default Runnablevoidrun()default RunnableMethods inherited from interface com.github.tonivade.purefun.core.Recoverable
sneakyThrow
-
Method Details
-
run
- Throws:
Throwable
-
exec
default void exec() -
asProducer
-
andThen
-
recover
-
unchecked
-
failure
-
of
-