Skip to content

Commit be727b5

Browse files
jean-philippe-martinmziccard
authored andcommitted
Add shutdown
1 parent db89ffe commit be727b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gcloud-java-examples/src/main/java/com/google/cloud/examples/nio/ParallelCountBytes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ private void countFile(String fname) throws IOException{
134134
}
135135
work.add(exec.submit(full.resetForIndex(blockIndex++)));
136136
}
137+
exec.shutdown();
137138

138139
long elapsed = sw.elapsed(TimeUnit.SECONDS);
139140
System.out.println("Read all " + total + " bytes in " + elapsed + "s. ");

0 commit comments

Comments
 (0)