Skip to content

Commit 2530b68

Browse files
authored
Fix typo in Undispatched.kt (#4448)
- Rename private method startUndspatched to startUndispatched.
1 parent f1546c7 commit 2530b68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kotlinx-coroutines-core/common/src/intrinsics/Undispatched.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ internal fun <R, T> (suspend (R) -> T).startCoroutineUndispatched(receiver: R, c
4040
*/
4141
internal fun <T, R> ScopeCoroutine<T>.startUndispatchedOrReturn(
4242
receiver: R, block: suspend R.() -> T
43-
): Any? = startUndspatched(alwaysRethrow = true, receiver, block)
43+
): Any? = startUndispatched(alwaysRethrow = true, receiver, block)
4444

4545
/**
4646
* Same as [startUndispatchedOrReturn], but ignores [TimeoutCancellationException] on fast-path.
4747
*/
4848
internal fun <T, R> ScopeCoroutine<T>.startUndispatchedOrReturnIgnoreTimeout(
4949
receiver: R, block: suspend R.() -> T
50-
): Any? = startUndspatched(alwaysRethrow = false, receiver, block)
50+
): Any? = startUndispatched(alwaysRethrow = false, receiver, block)
5151

5252
/**
5353
* Starts and handles the result of an undispatched coroutine, potentially with children.
@@ -58,7 +58,7 @@ internal fun <T, R> ScopeCoroutine<T>.startUndispatchedOrReturnIgnoreTimeout(
5858
* It is a tweak for 'withTimeout' in order to successfully return values when the block was cancelled:
5959
* i.e. `withTimeout(1ms) { Thread.sleep(1000); 42 }` should not fail.
6060
*/
61-
private fun <T, R> ScopeCoroutine<T>.startUndspatched(
61+
private fun <T, R> ScopeCoroutine<T>.startUndispatched(
6262
alwaysRethrow: Boolean,
6363
receiver: R, block: suspend R.() -> T
6464
): Any? {

0 commit comments

Comments
 (0)