fixed bug : close async service before the main thread finishes ()

This commit is contained in:
Zhang WH
2019-09-30 23:32:29 +08:00
committed by Ilkka Seppälä
parent 06fa92af2c
commit 3d62e02891
2 changed files with 18 additions and 0 deletions
half-sync-half-async/src/main/java/com/iluwatar/halfsynchalfasync

@ -94,6 +94,8 @@ public class App {
service.execute(new ArithmeticSumTask(500));
service.execute(new ArithmeticSumTask(2000));
service.execute(new ArithmeticSumTask(1));
service.close();
}
/**