jdk/src/share/classes/java/util/concurrent/Callable.java
changeset 21976 92f0602be7c2
parent 18790 d25399d849bc
equal deleted inserted replaced
21975:2f8d24dcb6ca 21976:92f0602be7c2
    52  * @see Executor
    52  * @see Executor
    53  * @since 1.5
    53  * @since 1.5
    54  * @author Doug Lea
    54  * @author Doug Lea
    55  * @param <V> the result type of method {@code call}
    55  * @param <V> the result type of method {@code call}
    56  */
    56  */
       
    57 @FunctionalInterface
    57 public interface Callable<V> {
    58 public interface Callable<V> {
    58     /**
    59     /**
    59      * Computes a result, or throws an exception if unable to do so.
    60      * Computes a result, or throws an exception if unable to do so.
    60      *
    61      *
    61      * @return computed result
    62      * @return computed result