Skip to content

Commit e06585a

Browse files
committed
Rephrase default dispatcher documentation
1 parent a230fcf commit e06585a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/kotlinx-coroutines-core/src/Dispatchers.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ public actual object Dispatchers {
2525
* [launch][CoroutineScope.launch], [async][CoroutineScope.async], etc
2626
* if no dispatcher nor any other [ContinuationInterceptor] is specified in their context.
2727
*
28-
* It is backed by a shared pool of threads on JVM. By default, the maximal number of threads used
29-
* by this dispatcher is equal to the number CPU cores, but is at least two.
28+
* It is backed by a shared pool of threads on JVM. By default, the maximal level of parallelism used
29+
* by this dispatcher is equal to the number of CPU cores, but is at least two.
30+
* Level of parallelism X guarantees that no more than X tasks can be executed in this dispatcher in parallel.
3031
*/
3132
@JvmStatic
3233
public actual val Default: CoroutineDispatcher = createDefaultDispatcher()

0 commit comments

Comments
 (0)