Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

the function of CoroutineTestRule #44

Open
xyz-fly opened this issue Nov 30, 2021 · 0 comments
Open

the function of CoroutineTestRule #44

xyz-fly opened this issue Nov 30, 2021 · 0 comments

Comments

@xyz-fly
Copy link

xyz-fly commented Nov 30, 2021

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

Suggest to write this:

fun runBlockingTest(
    block: suspend TestCoroutineScope.() -> Unit
) = testDispatcher.runBlockingTest ( block )
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant