Interface FutureRunnable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for associating runnable code with a future,
whether the primary code of the future or callbacks based on future events.
- Since:
- 1.0
- Version:
- 2022-05-01
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(FutureWork future) Calls the specified function with access to the associated future.
-
Method Details
-
run
Calls the specified function with access to the associated future.- Parameters:
future
- the future this runnable is associated with- Throws:
Exception
-