Home
last modified time | relevance | path

Searched refs:limitedParallelism (Results 1 – 20 of 20) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DLimitedParallelismSharedTest.kt16 val view = Dispatchers.Default.limitedParallelism(1) in <lambda>()
17 val view2 = Dispatchers.Default.limitedParallelism(1) in <lambda>()
29 assertFailsWith<IllegalArgumentException> { Dispatchers.Default.limitedParallelism(0) } in testParallelismSpec()
30 assertFailsWith<IllegalArgumentException> { Dispatchers.Default.limitedParallelism(-1) } in testParallelismSpec()
31 …assertFailsWith<IllegalArgumentException> { Dispatchers.Default.limitedParallelism(Int.MIN_VALUE) } in testParallelismSpec()
32 Dispatchers.Default.limitedParallelism(Int.MAX_VALUE) in testParallelismSpec()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DDispatcher.kt19 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in limitedParallelism() method
22 return super.limitedParallelism(parallelism) in limitedParallelism()
51 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in toString() method
54 return super.limitedParallelism(parallelism) in toString()
61 private val default = UnlimitedIoScheduler.limitedParallelism(
74 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in execute() method
76 return UnlimitedIoScheduler.limitedParallelism(parallelism) in execute()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DLimitedParallelismStressTest.kt39 val view = executor.limitedParallelism(targetParallelism) in <lambda>()
51 val view = Dispatchers.IO.limitedParallelism(targetParallelism) in <lambda>()
63 val view = Dispatchers.IO.limitedParallelism(targetParallelism) in <lambda>()
74 val view = executor.limitedParallelism(targetParallelism) in <lambda>()
DLimitedParallelismUnhandledExceptionTest.kt24 val view = executor.limitedParallelism(1) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/concurrent/test/
DLimitedParallelismConcurrentTest.kt29 val view = executor.limitedParallelism(targetParallelism) in <lambda>()
51 val view = executor.limitedParallelism(1) in <lambda>()
52 val view2 = executor.limitedParallelism(1) in <lambda>()
83 val view = dispatcher.limitedParallelism(1) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/native/src/
DDispatchers.kt32 private val io = unlimitedPool.limitedParallelism(64) // Default JVM size
35 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in limitedParallelism() method
37 return unlimitedPool.limitedParallelism(parallelism) in limitedParallelism()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLimitedDispatcher.kt41 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in <lambda>() method
44 return super.limitedParallelism(parallelism) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DSchedulerTestBase.kt88 return _dispatcher!!.limitedParallelism(parallelism) in view()
112 }.limitedParallelism(parallelism) in blocking()
DDefaultDispatchersTest.kt30 val limited = Dispatchers.IO.limitedParallelism(EXPECTED_PARALLELISM) in <lambda>()
DCoroutineSchedulerCloseStressTest.kt49 Mode.CPU_LIMITED -> closeableDispatcher.limitedParallelism(N_THREADS) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/
DMainCoroutineDispatcher.kt56 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in toString() method in kotlinx.coroutines.MainCoroutineDispatcher
DUnconfined.kt16 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in limitedParallelism() method
DCoroutineDispatcher.kt105 public open fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in isDispatchNeeded() method in kotlinx.coroutines.CoroutineDispatcher
DEventLoop.common.kt117 final override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in <lambda>() method in kotlinx.coroutines.EventLoop
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/actors/
DPingPongWithBlockingContext.kt31 private val blocking = Dispatchers.IO.limitedParallelism(8)
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/internal/
DMainDispatchers.kt98 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher = in isDispatchNeeded() method in kotlinx.coroutines.internal.MissingMainCoroutineDispatcher
/external/kotlinx.coroutines/
DCHANGES.md68 * `Dispatchers.IO.limitedParallelism(valueLargerThanIOSize)` no longer creates an additional wrappe…
82 * Fixed a bug that allowed `limitedParallelism` to perform dispatches even after the underlying dis…
DCHANGES_UP_TO_1.7.md50 * `Dispatchers.IO.limitedParallelism(valueLargerThanIOSize)` no longer creates an additional wrappe…
64 * Fixed a bug that allowed `limitedParallelism` to perform dispatches even after the underlying dis…
87 * Fixed a bug that allowed `limitedParallelism` to perform dispatches even after the underlying dis…
135 * `Dispatchers.IO.limitedParallelism(valueLargerThanIOSize)` no longer creates an additional wrappe…
179 * Fixed a bug with `limitedParallelism` on K/N with new memory model throwing `ClassCastException` …
197 * Introduced `CoroutineDispatcher.limitedParallelism` that allows obtaining a view of the original …
198 * `Dispatchers.IO.limitedParallelism` usages ignore the bound on the parallelism level of `Dispatch…
275 * Introduced `CoroutineDispatcher.limitedParallelism` that allows obtaining a view of the original …
276 * `Dispatchers.IO.limitedParallelism` usages ignore the bound on the parallelism level of `Dispatch…
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DJSDispatcher.kt34 override fun limitedParallelism(parallelism: Int): CoroutineDispatcher { in <lambda>() method in kotlinx.coroutines.SetTimeoutBasedDispatcher
/external/kotlinx.coroutines/kotlinx-coroutines-core/api/
Dkotlinx-coroutines-core.api180 public fun limitedParallelism (I)Lkotlinx/coroutines/CoroutineDispatcher;
516 public fun limitedParallelism (I)Lkotlinx/coroutines/CoroutineDispatcher;