Module net.morimekta.terminal
Package net.morimekta.terminal.progress
Interface ProgressManager.ProgressHandler<T>
-
- Type Parameters:
T
- The progress return type.
- Enclosing class:
- ProgressManager
- 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 static interface ProgressManager.ProgressHandler<T>
Interface for handling progress synchronously.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
handle(Flow.Subscriber<Progress> progress)
Handle progress and return value.
-
-
-
Method Detail
-
handle
T handle(Flow.Subscriber<Progress> progress) throws Exception
Handle progress and return value.- Parameters:
progress
- Flow for reporting progress.- Returns:
- The end result when progress is done.
- Throws:
Exception
- If failing to handle the task.
-
-