Commit fd83111 1 parent d563e59 commit fd83111 Copy full SHA for fd83111
File tree 2 files changed +1
-11
lines changed
app/src/main/java/eu/kanade/tachiyomi/data/download
domain/src/main/java/tachiyomi/domain/updates/interactor
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import eu.kanade.tachiyomi.source.Source
7
7
import eu.kanade.tachiyomi.source.model.Page
8
8
import eu.kanade.tachiyomi.util.storage.DiskUtil
9
9
import exh.log.xLogE
10
- import kotlinx.coroutines.DelicateCoroutinesApi
11
10
import kotlinx.coroutines.flow.Flow
12
11
import kotlinx.coroutines.flow.asFlow
13
12
import kotlinx.coroutines.flow.drop
@@ -37,7 +36,6 @@ import uy.kohesive.injekt.api.get
37
36
* and retrieved through dependency injection. You can use this class to queue new chapters or query
38
37
* downloaded chapters.
39
38
*/
40
- @OptIn(DelicateCoroutinesApi ::class )
41
39
class DownloadManager (
42
40
private val context : Context ,
43
41
private val provider : DownloadProvider = Injekt .get(),
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ package tachiyomi.domain.updates.interactor
3
3
import kotlinx.coroutines.delay
4
4
import kotlinx.coroutines.flow.Flow
5
5
import kotlinx.coroutines.flow.catch
6
- import kotlinx.coroutines.flow.first
7
- import kotlinx.coroutines.flow.flow
8
6
import kotlinx.coroutines.flow.retry
9
7
import logcat.LogPriority
10
8
import tachiyomi.core.common.util.system.logcat
@@ -18,13 +16,7 @@ class GetUpdates(
18
16
) {
19
17
20
18
suspend fun await (read : Boolean , after : Long ): List <UpdatesWithRelations > {
21
- // SY -->
22
- return flow {
23
- emit(repository.awaitWithRead(read, after, limit = 500 ))
24
- }
25
- .catchNPE()
26
- .first()
27
- // SY <--
19
+ return repository.awaitWithRead(read, after, limit = 500 )
28
20
}
29
21
30
22
fun subscribe (instant : Instant ): Flow <List <UpdatesWithRelations >> {
You can’t perform that action at this time.
0 commit comments