Skip to content

Commit

Permalink
Update ScheduledThreadPoolEx.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikraji authored May 5, 2023
1 parent a3b009f commit c49f08a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void main(String[] args) throws InterruptedException {
ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);

executor.scheduleAtFixedRate(() -> {
System.out.println("------ I say Hello in every 1 sec -----");
System.out.println("------ I say Hello in every 2 sec -----");
}, 1, 2, TimeUnit.SECONDS);

executor.schedule(() -> {
Expand Down

0 comments on commit c49f08a

Please sign in to comment.