Package com.helixframework.time
Interface Timeout.TimeoutFunction<T>
- Type Parameters:
T- return type of the wrapped function
- Enclosing class:
- Timeout
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function that adds a timeout to the call.
-
Method Summary
-
Method Details
-
execute
Executes the wrapped function.- Returns:
- result of the wrapped function
- Throws:
Exception- exception
-