Skip to content

Commit 7548b83

Browse files
authored
Clarify yield documentation (#2466)
Fixes #2464
1 parent 7ab7433 commit 7548b83

File tree

1 file changed

+2
-1
lines changed
  • kotlinx-coroutines-core/common/src

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import kotlin.coroutines.*
99
import kotlin.coroutines.intrinsics.*
1010

1111
/**
12-
* Yields the thread (or thread pool) of the current coroutine dispatcher to other coroutines to run if possible.
12+
* Yields the thread (or thread pool) of the current coroutine dispatcher
13+
* to other coroutines on the same dispatcher to run if possible.
1314
*
1415
* This suspending function is cancellable.
1516
* If the [Job] of the current coroutine is cancelled or completed when this suspending function is invoked or while

0 commit comments

Comments
 (0)