jdk/src/share/classes/java/util/concurrent/Future.java
changeset 21334 c60dfce46a77
parent 18790 d25399d849bc
equal deleted inserted replaced
21333:e940100a7176 21334:c60dfce46a77
    50  * declare types of the form {@code Future<?>} and
    50  * declare types of the form {@code Future<?>} and
    51  * return {@code null} as a result of the underlying task.
    51  * return {@code null} as a result of the underlying task.
    52  *
    52  *
    53  * <p>
    53  * <p>
    54  * <b>Sample Usage</b> (Note that the following classes are all
    54  * <b>Sample Usage</b> (Note that the following classes are all
    55  * made-up.) <p>
    55  * made-up.)
    56  *  <pre> {@code
    56  * <pre> {@code
    57  * interface ArchiveSearcher { String search(String target); }
    57  * interface ArchiveSearcher { String search(String target); }
    58  * class App {
    58  * class App {
    59  *   ExecutorService executor = ...
    59  *   ExecutorService executor = ...
    60  *   ArchiveSearcher searcher = ...
    60  *   ArchiveSearcher searcher = ...
    61  *   void showSearch(final String target)
    61  *   void showSearch(final String target)