Created
March 18, 2022 16:56
-
-
Save ahndmal/b059f8ee95ced0b4f0f7ca620d1584c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScheduledExecutorService service = Executors.newScheduledThreadPool(3); | |
service.scheduleAtFixedRate(() -> { | |
System.out.println("hello"); | |
}, 0L, 5L, TimeUnit.SECONDS); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment