Skip to content

Commit c64597c

Browse files
authored
Update outdated comment in CoroutineDispatcher.kt (#4452)
- Renamed backgroundDispatcher to dispatcher to match the variable name in the sample code.
1 parent 6593ba8 commit c64597c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/CoroutineDispatcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public abstract class CoroutineDispatcher :
128128
*
129129
* Note that this example was structured in such a way that it illustrates the parallelism guarantees.
130130
* In practice, it is usually better to use `Dispatchers.IO` or [Dispatchers.Default] instead of creating a
131-
* `backgroundDispatcher`.
131+
* `dispatcher`.
132132
*
133133
* ### `limitedParallelism(1)` pattern
134134
*

0 commit comments

Comments
 (0)