mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-26 03:58:50 +00:00
fix for EverySecondScheduler
This commit is contained in:
parent
686716e20f
commit
565aff4538
@ -13,6 +13,7 @@
|
||||
* Kotlin `1.3.70` -> `1.3.72`
|
||||
* Coroutines `1.3.5` -> `1.3.7`
|
||||
* Klock `1.10.0` -> `1.11.3`
|
||||
* `EverySecondScheduler` changed its building logic - now it is lazy with builder using
|
||||
|
||||
### 0.2.2
|
||||
|
||||
|
@ -18,8 +18,9 @@ val AnyTimeScheduler: KronScheduler by lazy {
|
||||
/**
|
||||
* [KronScheduler.next] will always return [com.soywiz.klock.DateTime.now] + one second
|
||||
*/
|
||||
val EverySecondScheduler: KronScheduler
|
||||
get() = AnyTimeScheduler
|
||||
val EverySecondScheduler: KronScheduler by lazy {
|
||||
buildSchedule { seconds { 0 every 1 } }
|
||||
}
|
||||
|
||||
/**
|
||||
* [KronScheduler.next] will always return [com.soywiz.klock.DateTime.now] + one minute
|
||||
|
Loading…
Reference in New Issue
Block a user