Work on #403, updated diagram and finishing touches

This commit is contained in:
Narendra Pathai
2016-08-29 11:50:33 +05:30
parent 483c61a82a
commit 5796e1967f
3 changed files with 22 additions and 21 deletions

View File

@ -61,11 +61,12 @@ import java.util.concurrent.Executors;
public class App {
private static final String DEFAULT_URL = "https://raw.githubusercontent.com/iluwatar/java-design-patterns/Promise/promise/README.md";
private ExecutorService executor;
private CountDownLatch stopLatch = new CountDownLatch(2);
private final ExecutorService executor;
private final CountDownLatch stopLatch;
private App() {
executor = Executors.newFixedThreadPool(2);
stopLatch = new CountDownLatch(2);
}
/**