mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-06-02 07:55:22 +00:00
10 lines
272 B
Kotlin
10 lines
272 B
Kotlin
package dev.inmo.krontab.utils
|
|
|
|
import kotlinx.coroutines.CoroutineScope
|
|
import kotlinx.coroutines.runBlocking
|
|
|
|
/**
|
|
* Workaround to use suspending functions in unit tests
|
|
*/
|
|
actual fun runTest(block: suspend (scope: CoroutineScope) -> Unit) = runBlocking(block = block)
|