ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ExecutorService.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ExecutorService.java (file contents):
Revision 1.62 by jsr166, Wed Dec 31 07:54:13 2014 UTC vs.
Revision 1.63 by jsr166, Tue Feb 17 18:55:39 2015 UTC

# Line 43 | Line 43 | import java.util.List;
43   * pool service incoming requests. It uses the preconfigured {@link
44   * Executors#newFixedThreadPool} factory method:
45   *
46 < *  <pre> {@code
46 > * <pre> {@code
47   * class NetworkService implements Runnable {
48   *   private final ServerSocket serverSocket;
49   *   private final ExecutorService pool;
# Line 77 | Line 77 | import java.util.List;
77   * first by calling {@code shutdown} to reject incoming tasks, and then
78   * calling {@code shutdownNow}, if necessary, to cancel any lingering tasks:
79   *
80 < *  <pre> {@code
80 > * <pre> {@code
81   * void shutdownAndAwaitTermination(ExecutorService pool) {
82   *   pool.shutdown(); // Disable new tasks from being submitted
83   *   try {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines