- All Known Subinterfaces:
- All Known Implementing Classes:
- 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 interface TaskFunctionFunction to invoke as a sequential process on a concurrent execution
Stage.task(TaskFunction)to bind a
Stage, and invoke
TaskRef.cue()to schedule the concurrent execution of the sequential task.
TaskFunctionimplementations should not perform long running or blocking operations. If a blocking operation needs to be performed, implement a
taskWillBlock()to avoid thread starvation of the execution