mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 16:23:55 +00:00
Delete 'src/jvm8Main/kotlin/TempMain.kt'
This commit is contained in:
parent
b93b9fd7c7
commit
0574c3ba8c
@ -1,23 +0,0 @@
|
|||||||
import com.insanusmokrassar.krontab.builder.buildSchedule
|
|
||||||
import com.insanusmokrassar.krontab.executeOnce
|
|
||||||
import com.soywiz.klock.DateTime
|
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
|
|
||||||
fun main() {
|
|
||||||
runBlocking {
|
|
||||||
buildSchedule {
|
|
||||||
seconds {
|
|
||||||
from(5) every 10
|
|
||||||
from(0) upTo 5
|
|
||||||
}
|
|
||||||
minutes {
|
|
||||||
at(30)
|
|
||||||
at(59)
|
|
||||||
}
|
|
||||||
}.also {
|
|
||||||
println(it)
|
|
||||||
}.executeOnce {
|
|
||||||
println("Done: ${DateTime.now()}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user