Skip to content

Commit 7594ef8

Browse files
authored
Update the wording for Dispatchers.Unconfined
In my recent PR (Kotlin#3607) I changed the example for `Dispatchers.Unconfined` but the rest of the documentation still mentions two `withContext` which isn't correct any longer.
1 parent 52a3ae5 commit 7594ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public expect object Dispatchers {
6464
* println("Done")
6565
* ```
6666
* Can print both "1 2 3" and "1 3 2". This is an implementation detail that can be changed.
67-
* However, it is guaranteed that "Done" will be printed only when both `withContext` calls are completed.
67+
* However, it is guaranteed that "Done" will be printed only the `withContext` call is completed.
6868
*
6969
* If you need your coroutine to be confined to a particular thread or a thread-pool after resumption,
7070
* but still want to execute it in the current call-frame until its first suspension, you can use

0 commit comments

Comments
 (0)