Last active
March 10, 2019 12:16
-
-
Save ezhov-da/0bb79bd0347780c7483b330946f84583 to your computer and use it in GitHub Desktop.
выполнение через интервалы
This file contains 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 executor = Executors.newSingleThreadScheduledExecutor(); | |
executor.scheduleAtFixedRate(() -> { | |
//Runnable | |
}, 0, 1, TimeUnit.MINUTES); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment