-
-
Save NyCodeGHG/0f662dee584d39a29d1de4264da45424 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
import dev.inmo.krontab.buildSchedule | |
import dev.inmo.krontab.doWhile | |
import kotlinx.coroutines.runBlocking | |
fun main() { | |
val start = System.currentTimeMillis() | |
runBlocking { | |
buildSchedule("/5 * * * *").doWhile { | |
println("hello") | |
start + 16 * 1000 > System.currentTimeMillis() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment