Home
last modified time | relevance | path

Searched refs:DelayController (Results 1 – 6 of 6) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineScope.kt14 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(
DTestBuilders.kt80 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()
DDelayController.kt12 public interface DelayController { interface
DTestCoroutineDispatcher.kt28 public class TestCoroutineDispatcher: CoroutineDispatcher(), Delay, DelayController { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DREADME.md126 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/
Dkotlinx-coroutines-test.txt1 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…