mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 16:09:16 +01:00
Add backpressure buffer for downloads
This commit is contained in:
parent
fad7b75b96
commit
0e87dc995a
@ -78,6 +78,7 @@ public class DownloadManager {
|
||||
downloadsSubscription = downloadsQueueSubject
|
||||
.flatMap(Observable::from)
|
||||
.lift(new DynamicConcurrentMergeOperator<>(this::downloadChapter, threadsSubject))
|
||||
.onBackpressureBuffer()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.map(download -> areAllDownloadsFinished())
|
||||
.subscribe(finished -> {
|
||||
|
Loading…
Reference in New Issue
Block a user