Downloader thread number to 4

This commit is contained in:
Pupil
2020-02-09 17:25:55 +09:00
parent f6d9c7f550
commit 748495ca64
3 changed files with 4 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ class DownloadWorker private constructor(context: Context) : ContextWrapper(cont
.body(ProgressResponseBody(request.tag(), response.body(), progressListener))
.build()
}
.dispatcher(Dispatcher(Executors.newSingleThreadExecutor()))
.dispatcher(Dispatcher(Executors.newFixedThreadPool(4)))
.build()
fun stop() {