Skip to content

Commit 6667d37

Browse files
committed
~comments style
1 parent fc74c80 commit 6667d37

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ public suspend fun <T> withContext(
168168
}
169169
// SLOW PATH -- use new dispatcher
170170
val coroutine = DispatchedCoroutine(newContext, uCont)
171-
// Contract is preserved, invoked immediately or throws
172-
@Suppress("LEAKED_IN_PLACE_LAMBDA")
171+
@Suppress("LEAKED_IN_PLACE_LAMBDA") // Contract is preserved, invoked immediately or throws
173172
block.startCoroutineCancellable(coroutine, coroutine)
174173
coroutine.getResult()
175174
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,7 @@ public suspend fun <R> coroutineScope(block: suspend CoroutineScope.() -> R): R
281281
}
282282
return suspendCoroutineUninterceptedOrReturn { uCont ->
283283
val coroutine = ScopeCoroutine(uCont.context, uCont)
284-
// Contract is preserved, invoked immediately or throws
285-
@Suppress("LEAKED_IN_PLACE_LAMBDA")
284+
@Suppress("LEAKED_IN_PLACE_LAMBDA") // Contract is preserved, invoked immediately or throws
286285
coroutine.startUndispatchedOrReturn(coroutine, block)
287286
}
288287
}

0 commit comments

Comments
 (0)