Package com.iizix
Interface WorkerTaskEnded<I,P,R>
- All Known Subinterfaces:
IVSActionProcessComplete
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The WorkerTask ended callback interface.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
onTaskEnded
(WorkerTask<I, P, R> task) Called when the worker task has completed.
Method Details
onTaskEnded
Called when the worker task has completed. To get the result, call task.getResult() or task.getException() depending on the task completion state. Note: this function is called also when a task is cancelled.- Parameters:
task
- The task that has ended.