executeInBackground

abstract fun <T> executeInBackground(context: CoroutineContext = UnconfinedTestDispatcher(scope.testScheduler), command: suspend () -> T): BackgroundCoroutineState<T>

Execute a command in the backgroundScope.

Return

BackgroundCoroutineState instance which can be used for asserting the current state of the coroutine execution