asFlow extension

This commit is contained in:
2020-01-13 10:15:01 +06:00
parent 5e4065ee53
commit 1d202a7311
7 changed files with 84 additions and 0 deletions

View File

@@ -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)