From 24b66b70305e9226cdedd2bdf49704fce69ced76 Mon Sep 17 00:00:00 2001 From: MajorTanya <39014446+MajorTanya@users.noreply.github.com> Date: Sat, 21 Mar 2026 21:17:35 +0100 Subject: [PATCH] Address CancellableContinuation.resume deprecation (#3115) According to the source docs, this has been a warning since kotlinx.coroutines 1.9.0. --- .../main/kotlin/eu/kanade/tachiyomi/network/OkHttpExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/common/src/main/kotlin/eu/kanade/tachiyomi/network/OkHttpExtensions.kt b/core/common/src/main/kotlin/eu/kanade/tachiyomi/network/OkHttpExtensions.kt index 0a860d069..072c50c81 100755 --- a/core/common/src/main/kotlin/eu/kanade/tachiyomi/network/OkHttpExtensions.kt +++ b/core/common/src/main/kotlin/eu/kanade/tachiyomi/network/OkHttpExtensions.kt @@ -77,7 +77,7 @@ private suspend fun Call.await(callStack: Array): Response { val callback = object : Callback { override fun onResponse(call: Call, response: Response) { - continuation.resume(response) { + continuation.resume(response) { _, _, _ -> response.body.close() } }