- All Implemented Interfaces:
- Runnable, Callable<Void>
public abstract class Task
extends Object
implements Runnable, Callable<Void>
Adaptation of Runnable to Callable's contract to allow convenient creation of instances of Runnable that throw Exceptions,
or instances of Callable<Void> without needing to return null.