From 0668932a2c287a0440ae30f07d99757cb1ece6a8 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 1 Feb 2022 12:54:47 -0500 Subject: [PATCH] Add OkHttp await suspension function stub --- .../main/java/eu/kanade/tachiyomi/network/OkHttpExtensions.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/src/main/java/eu/kanade/tachiyomi/network/OkHttpExtensions.kt b/library/src/main/java/eu/kanade/tachiyomi/network/OkHttpExtensions.kt index 6b74a2a..a99da7e 100644 --- a/library/src/main/java/eu/kanade/tachiyomi/network/OkHttpExtensions.kt +++ b/library/src/main/java/eu/kanade/tachiyomi/network/OkHttpExtensions.kt @@ -7,3 +7,5 @@ import rx.Observable fun Call.asObservable(): Observable = throw Exception("Stub!") fun Call.asObservableSuccess(): Observable = throw Exception("Stub!") + +suspend fun Call.await(): Response = throw Exception("Stub!")