File tree 2 files changed +2
-4
lines changed
kotlinx-coroutines-core/common/src 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ public suspend fun <T> withContext(
168
168
}
169
169
// SLOW PATH -- use new dispatcher
170
170
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
173
172
block.startCoroutineCancellable(coroutine, coroutine)
174
173
coroutine.getResult()
175
174
}
Original file line number Diff line number Diff line change @@ -281,8 +281,7 @@ public suspend fun <R> coroutineScope(block: suspend CoroutineScope.() -> R): R
281
281
}
282
282
return suspendCoroutineUninterceptedOrReturn { uCont ->
283
283
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
286
285
coroutine.startUndispatchedOrReturn(coroutine, block)
287
286
}
288
287
}
You can’t perform that action at this time.
0 commit comments