mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-12-17 02:15:47 +00:00
asFlow extension
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.insanusmokrassar.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)
|
||||
Reference in New Issue
Block a user