trackr icon indicating copy to clipboard operation
trackr copied to clipboard

the function of CoroutineTestRule

Open xyz-fly opened this issue 4 years ago • 0 comments

fun runBlockingTest(
    block: suspend TestCoroutineScope.() -> Unit
) = testDispatcher.runBlockingTest {
    block()
}

Suggest to write this:

fun runBlockingTest(
    block: suspend TestCoroutineScope.() -> Unit
) = testDispatcher.runBlockingTest ( block )

xyz-fly avatar Nov 30 '21 07:11 xyz-fly