mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 06:19:08 +01:00
lint cleanup
This commit is contained in:
parent
c724a9e022
commit
4805e54b63
@ -11,8 +11,6 @@ import eu.kanade.tachiyomi.source.model.toPageUrl
|
|||||||
import eu.kanade.tachiyomi.source.model.toSChapter
|
import eu.kanade.tachiyomi.source.model.toSChapter
|
||||||
import eu.kanade.tachiyomi.source.model.toSManga
|
import eu.kanade.tachiyomi.source.model.toSManga
|
||||||
import eu.kanade.tachiyomi.util.system.awaitSingle
|
import eu.kanade.tachiyomi.util.system.awaitSingle
|
||||||
import kotlinx.coroutines.Dispatchers
|
|
||||||
import kotlinx.coroutines.withContext
|
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
import tachiyomi.source.model.ChapterInfo
|
import tachiyomi.source.model.ChapterInfo
|
||||||
import tachiyomi.source.model.MangaInfo
|
import tachiyomi.source.model.MangaInfo
|
||||||
|
@ -41,7 +41,7 @@ private suspend fun <T> Observable<T>.awaitOne(): T = suspendCancellableCoroutin
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onError(e: Throwable) {
|
override fun onError(e: Throwable) {
|
||||||
/*
|
/*
|
||||||
* Rx1 observable throws NoSuchElementException if cancellation happened before
|
* Rx1 observable throws NoSuchElementException if cancellation happened before
|
||||||
* element emission. To mitigate this we try to atomically resume continuation with exception:
|
* element emission. To mitigate this we try to atomically resume continuation with exception:
|
||||||
* if resume failed, then we know that continuation successfully cancelled itself
|
* if resume failed, then we know that continuation successfully cancelled itself
|
||||||
|
Loading…
x
Reference in New Issue
Block a user