Address CancellableContinuation.resume deprecation (#3115)
According to the source docs, this has been a warning since kotlinx.coroutines 1.9.0.
This commit is contained in:
@@ -77,7 +77,7 @@ private suspend fun Call.await(callStack: Array<StackTraceElement>): Response {
|
|||||||
val callback =
|
val callback =
|
||||||
object : Callback {
|
object : Callback {
|
||||||
override fun onResponse(call: Call, response: Response) {
|
override fun onResponse(call: Call, response: Response) {
|
||||||
continuation.resume(response) {
|
continuation.resume(response) { _, _, _ ->
|
||||||
response.body.close()
|
response.body.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user