Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DExecutors.kt20 public abstract class ExecutorCoroutineDispatcher: CoroutineDispatcher(), Closeable { class
23 …mpanion object Key : AbstractCoroutineContextKey<CoroutineDispatcher, ExecutorCoroutineDispatcher>(
25 { it as? ExecutorCoroutineDispatcher }) in <lambda>()
41 public actual typealias CloseableCoroutineDispatcher = ExecutorCoroutineDispatcher in close()
69 public fun ExecutorService.asCoroutineDispatcher(): ExecutorCoroutineDispatcher = in close()
108 (this as? ExecutorCoroutineDispatcher)?.executor ?: DispatcherExecutor(this) in close()
115 …utorCoroutineDispatcherImpl(override val executor: Executor) : ExecutorCoroutineDispatcher(), Dela…
DThreadPoolDispatcher.kt34 public actual fun newSingleThreadContext(name: String): ExecutorCoroutineDispatcher = in <lambda>()
62 …ic actual fun newFixedThreadPoolContext(nThreads: Int, name: String): ExecutorCoroutineDispatcher { in <lambda>()
/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/test/knit/
DClosedAfterGuideTestExecutor.kt11 internal fun newSingleThreadContext(name: String): ExecutorCoroutineDispatcher = ClosedAfterGuideTe… in newSingleThreadContext()
13 internal fun newFixedThreadPoolContext(nThreads: Int, name: String): ExecutorCoroutineDispatcher = in newSingleThreadContext()
17 @JvmField val dispatcher: ExecutorCoroutineDispatcher, // for debugging & tests in newSingleThreadContext()
28 ) : ExecutorCoroutineDispatcher() {
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DDispatcher.kt44 internal object DefaultIoScheduler : ExecutorCoroutineDispatcher(), Executor {
86 ) : ExecutorCoroutineDispatcher() { in toString()
DDeprecated.kt29 ) : ExecutorCoroutineDispatcher() {
116 ) : ExecutorCoroutineDispatcher(), TaskContext, Executor { in createScheduler()
/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.api319 public abstract class kotlinx/coroutines/ExecutorCoroutineDispatcher : kotlinx/coroutines/Coroutine…
320 public static final field Key Lkotlinx/coroutines/ExecutorCoroutineDispatcher$Key;
326 public final class kotlinx/coroutines/ExecutorCoroutineDispatcher$Key : kotlin/coroutines/AbstractC…
332 …l fun from (Ljava/util/concurrent/ExecutorService;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
555 …fun newFixedThreadPoolContext (ILjava/lang/String;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
556 …nal fun newSingleThreadContext (Ljava/lang/String;)Lkotlinx/coroutines/ExecutorCoroutineDispatcher;
1177 …tines/scheduling/ExperimentalCoroutineDispatcher : kotlinx/coroutines/ExecutorCoroutineDispatcher {
/external/kotlinx.coroutines/
DCHANGES.md460 * `CoroutineDispatcher` and `ExecutorCoroutineDispatcher` experimental coroutine context keys are i…
899 * Introduced `ExecutorCoroutineDispatcher` instead of `CloseableCoroutineDispatcher` (see #385).