mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Add backpressure buffer for downloads
This commit is contained in:
		| @@ -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 -> { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user