Home
last modified time | relevance | path

Searched refs:asCoroutineDispatcher (Results 1 – 25 of 33) sorted by relevance

12

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DRejectedExecutionTest.kt28 val job = launch(executor.asCoroutineDispatcher()) { in <lambda>()
39 val job = launch(executor.asCoroutineDispatcher(), start = CoroutineStart.ATOMIC) { in <lambda>()
53 withContext(executor.asCoroutineDispatcher()) { in <lambda>()
66 withContext(executor.asCoroutineDispatcher()) { in <lambda>()
97 withContext(executor.asCoroutineDispatcher()) { in <lambda>()
119 withContext(executor.asCoroutineDispatcher()) { in <lambda>()
DExecutorsTest.kt41 runBlocking(executor.asCoroutineDispatcher()) { in <lambda>()
52 val dispatcher: CoroutineDispatcher = executor.asCoroutineDispatcher() in <lambda>()
77 assertSame(dispatcher, executor.asCoroutineDispatcher()) in <lambda>()
102 val dispatcher = executorService.asCoroutineDispatcher() in <lambda>()
DWithTimeoutOrNullThreadDispatchTest.kt26 executor!!.asCoroutineDispatcher() in testCancellationDispatchScheduled()
34 executor!!.asCoroutineDispatcher() in testCancellationDispatchNonScheduled()
DWithTimeoutThreadDispatchTest.kt26 executor!!.asCoroutineDispatcher() in testCancellationDispatchScheduled()
34 executor!!.asCoroutineDispatcher() in testCancellationDispatchNonScheduled()
DFailingCoroutinesMachineryTest.kt103 …her("Executors.newFixedThreadPool(1)") { Executors.newFixedThreadPool(1).asCoroutineDispatcher() }, in <lambda>()
104 …cutors.newScheduledThreadPool(1)") { Executors.newScheduledThreadPool(1).asCoroutineDispatcher() }, in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/test/
DHandlerDispatcherTest.kt49 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>()
68 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>()
87 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher() in <lambda>()
106 val main = Looper.getMainLooper().asHandler(async = false).asCoroutineDispatcher() in <lambda>()
124 val main = Looper.getMainLooper().asHandler(async = true).asCoroutineDispatcher("testName") in testToString()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DWindow.kt13 public fun Window.asCoroutineDispatcher(): CoroutineDispatcher = in <lambda>() method
36 private val dispatcher = window.asCoroutineDispatcher()
DCoroutineContext.kt27 window.asCoroutineDispatcher() in createDefaultDispatcher()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/
DDispatchersContextSwitchBenchmark.kt27 private val fjp = ForkJoinPool.commonPool().asCoroutineDispatcher()
28 private val ftp = Executors.newFixedThreadPool(CORES_COUNT - 1).asCoroutineDispatcher()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/
DREADME.md31 | [Scheduler.asCoroutineDispatcher][reactor.core.scheduler.Scheduler.asCoroutineDispatcher] | Conve…
49 [reactor.core.scheduler.Scheduler.asCoroutineDispatcher]: https://kotlin.github.io/kotlinx.coroutin…
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExecutors.kt49 public fun ExecutorService.asCoroutineDispatcher(): ExecutorCoroutineDispatcher = in close() method
62 public fun Executor.asCoroutineDispatcher(): CoroutineDispatcher = in close() method
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/test/
DSchedulerTest.kt23 withContext(Schedulers.single().asCoroutineDispatcher()) { in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/test/
DSchedulerTest.kt23 withContext(Schedulers.io().asCoroutineDispatcher()) { in <lambda>()
DLeakedExceptionTest.kt100 val dispatcher = pool.asCoroutineDispatcher() in <lambda>()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/test/
DSchedulerTest.kt23 withContext(Schedulers.io().asCoroutineDispatcher()) { in <lambda>()
DLeakedExceptionTest.kt100 val dispatcher = pool.asCoroutineDispatcher() in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/
DParametrizedDispatcherBase.kt31 dispatcher == "fjp" -> ForkJoinPool.commonPool().asCoroutineDispatcher() in setup()
DSemaphoreBenchmark.kt86 FORK_JOIN({ parallelism -> ForkJoinPool(parallelism).asCoroutineDispatcher() }), in parallelism()
DChannelProducerConsumerBenchmark.kt131 FORK_JOIN({ parallelism -> ForkJoinPool(parallelism).asCoroutineDispatcher() }) in parallelism()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/src/
DRxScheduler.kt16 public fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher = SchedulerCoroutineDisp… in asCoroutineDispatcher() method
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/src/
DRxScheduler.kt16 public fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher = SchedulerCoroutineDisp… in asCoroutineDispatcher() method
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/src/
DScheduler.kt16 public fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher = SchedulerCoroutineDisp… in asCoroutineDispatcher() method
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/actors/
DPingPongWithBlockingContext.kt55 runPingPongs(ForkJoinPool.commonPool().asCoroutineDispatcher(), threadPool) in commonPoolWithContextPingPong()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/
DREADME.md48 | [Scheduler.asCoroutineDispatcher][io.reactivex.rxjava3.core.Scheduler.asCoroutineDispatcher] | Co…
79 [io.reactivex.rxjava3.core.Scheduler.asCoroutineDispatcher]: https://kotlin.github.io/kotlinx.corou…
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/
DREADME.md51 | [Scheduler.asCoroutineDispatcher][io.reactivex.Scheduler.asCoroutineDispatcher] | Converts schedu…
86 [io.reactivex.Scheduler.asCoroutineDispatcher]: https://kotlin.github.io/kotlinx.coroutines/kotlinx…

12