Searched refs:DelayController (Results 1 – 6 of 6) sorted by relevance
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/ |
D | TestCoroutineScope.kt | 14 public interface TestCoroutineScope: CoroutineScope, UncaughtExceptionCaptor, DelayController { 31 DelayController by coroutineContext.delayController in cleanupTestCoroutines() 65 private inline val CoroutineContext.delayController: DelayController 68 return handler as? DelayController ?: throw IllegalArgumentException(
|
D | TestBuilders.kt | 80 private fun CoroutineContext.checkArguments(): Pair<CoroutineContext, DelayController> { in runBlockingTest() 83 …this?.let { require(this is DelayController) { "Dispatcher must implement DelayController: $this" … in runBlockingTest() 95 return Pair(this + dispatcher + exceptionHandler + job, dispatcher as DelayController) in runBlockingTest()
|
D | DelayController.kt | 12 public interface DelayController { interface
|
D | TestCoroutineDispatcher.kt | 28 public class TestCoroutineDispatcher: CoroutineDispatcher(), Delay, DelayController { in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/ |
D | README.md | 126 To control time in the test you can use the [DelayController] interface. The block passed to 127 [runBlockingTest] can call any method on the `DelayController` interface. 149 exiting. This is a convenience to avoid having to call [advanceUntilIdle][DelayController.advanceUn… 189 To disable eager execution, you can call [pauseDispatcher][DelayController.pauseDispatcher] 224 …ck returned. In advanced situations tests can call [pauseDispatcher][DelayController.pauseDispatch… 225 …ck and then explicitly resume the dispatcher with [resumeDispatcher][DelayController.resumeDispatc… 330 important to ensure that [cleanupTestCoroutines][DelayController.cleanupTestCoroutines] is called a… 448 [DelayController]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coro… 449 [DelayController.advanceUntilIdle]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-… 450 [DelayController.pauseDispatcher]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-t… [all …]
|
/external/kotlinx.coroutines/binary-compatibility-validator/reference-public-api/ |
D | kotlinx-coroutines-test.txt | 1 public abstract interface class kotlinx/coroutines/test/DelayController { 19 …coroutines/CoroutineDispatcher, kotlinx/coroutines/Delay, kotlinx/coroutines/test/DelayController { 44 …neScope : kotlinx/coroutines/CoroutineScope, kotlinx/coroutines/test/DelayController, kotlinx/coro…
|