mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-06-01 23:45:22 +00:00
9 lines
247 B
Kotlin
9 lines
247 B
Kotlin
package dev.inmo.krontab.utils
|
|
|
|
import kotlinx.coroutines.*
|
|
|
|
fun CoroutineScope.createFailJob(forTimeMillis: Long) = launch {
|
|
delay(forTimeMillis)
|
|
throw IllegalStateException("This job must be completed at before this exception happen")
|
|
}
|