/* * @(#)Callable.java */ package java.util.concurrent; /** * An asynchronous task that returns a result and may throw an exception. * Implementors define a single method of no arguments called call. * *
The Callable interface is similar to {@link Runnable}, in that
* both are designed for classes whose instances are executed by a thread.
* A Runnable, however, does not return a result and cannot throw a
* checked exception.
*
* @fixme Should "asynchronous task" be defined somewhere?
*
* @since 1.5
* @see Executor
* @see FutureTask
*
* @spec JSR-166
* @revised $Date: 2003/05/14 21:30:45 $
* @editor $Author: tim $
*/
public interface Callable