Home
last modified time | relevance | path

Searched refs:ExecutorCoroutineDispatcher (Results 1 – 12 of 12) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DDispatcherKeyTest.kt40 assertNull(context[ExecutorCoroutineDispatcher]) in testExecutorCoroutineDispatcher()
42 assertNull(updated[ExecutorCoroutineDispatcher]) in testExecutorCoroutineDispatcher()
47 …assertSame(Dispatchers.Default as ExecutorCoroutineDispatcher, updated2[ExecutorCoroutineDispatche… in testExecutorCoroutineDispatcher()
50 assertEquals(name, updated2.minusKey(ExecutorCoroutineDispatcher)) in testExecutorCoroutineDispatcher()
DExecutorRule.kt13 class ExecutorRule(private val numberOfThreads: Int) : TestRule, ExecutorCoroutineDispatcher() {
15 private var _executor: ExecutorCoroutineDispatcher? = null
DThreads.kt40 fun ExecutorCoroutineDispatcher.dumpThreads(header: String) = in dumpThreads() method
DFailingCoroutinesMachineryTest.kt29 runCatching { (_value as? ExecutorCoroutineDispatcher)?.close() } in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExecutors.kt19 public abstract class ExecutorCoroutineDispatcher: CoroutineDispatcher(), Closeable { class
22 …mpanion object Key : AbstractCoroutineContextKey<CoroutineDispatcher, ExecutorCoroutineDispatcher>(
24 { it as? ExecutorCoroutineDispatcher }) in <lambda>()
49 public fun ExecutorService.asCoroutineDispatcher(): ExecutorCoroutineDispatcher = in close()
71 (this as? ExecutorCoroutineDispatcher)?.executor ?: DispatcherExecutor(this) in close()
84 internal abstract class ExecutorCoroutineDispatcherBase : ExecutorCoroutineDispatcher(), Delay {
DThreadPoolDispatcher.kt35 public fun newSingleThreadContext(name: String): ExecutorCoroutineDispatcher = in <lambda>()
62 public fun newFixedThreadPoolContext(nThreads: Int, name: String): ExecutorCoroutineDispatcher { in <lambda>()
DCommonPool.kt23 internal object CommonPool : ExecutorCoroutineDispatcher() {
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerCloseStressTest.kt32 private lateinit var dispatcher: ExecutorCoroutineDispatcher
59 … Mode.CPU_LIMITED -> closeableDispatcher.limited(N_THREADS) as ExecutorCoroutineDispatcher in <lambda>()
60 Mode.BLOCKING -> closeableDispatcher.blocking(N_THREADS) as ExecutorCoroutineDispatcher in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DDispatcher.kt45 ) : ExecutorCoroutineDispatcher() { in toString()
148 ) : ExecutorCoroutineDispatcher(), TaskContext, Executor {
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/flow/
DStateFlowStressTest.kt14 private lateinit var pool: ExecutorCoroutineDispatcher in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api300 public abstract class kotlinx/coroutines/ExecutorCoroutineDispatcher : kotlinx/coroutines/Coroutine…
301 public static final field Key Lkotlinx/coroutines/ExecutorCoroutineDispatcher$Key;
307 public final class kotlinx/coroutines/ExecutorCoroutineDispatcher$Key : kotlin/coroutines/AbstractC…
313 …l fun from (Ljava/util/concurrent/ExecutorService;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
527 …fun newFixedThreadPoolContext (ILjava/lang/String;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
528 …nal fun newSingleThreadContext (Ljava/lang/String;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
1165 …tines/scheduling/ExperimentalCoroutineDispatcher : kotlinx/coroutines/ExecutorCoroutineDispatcher {
/external/kotlinx.coroutines/
DCHANGES.md153 * `CoroutineDispatcher` and `ExecutorCoroutineDispatcher` experimental coroutine context keys are i…
592 * Introduced `ExecutorCoroutineDispatcher` instead of `CloseableCoroutineDispatcher` (see #385).