T - The type of the accepted value.E - The type of the accepted exception.public interface ConsumingRunnable<T,E extends java.lang.Throwable>
T or an exception of
type E. This allows for combining runnables.| Modifier and Type | Method and Description |
|---|---|
void |
consumeException(E exception)
Consumes the designated exception.
|
void |
consumeResult(T result)
Consumes the designated result.
|