files replacements

This commit is contained in:
2023-08-09 13:01:20 +06:00
parent 715d414f51
commit cbfbdc1b33
36 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package dev.inmo.krontab.utils
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
fun CoroutineScope.createFailJob(forTimeMillis: Long) = launch {
delay(forTimeMillis)
throw IllegalStateException("This job must be completed at before this exception happen")
}