Fetch
Fetch copied to clipboard
setDownloadConcurrentLimit is not working
fun getGlobalFetchInstance(context : Context?) : Fetch?{
return context?.let {
FetchConfiguration.Builder(it)
.setDownloadConcurrentLimit(2)
.enableFileExistChecks(true)
.enableHashCheck(true)
.enableRetryOnNetworkGain(true)
.setInternetAccessUrlCheck("https://www.google.com")
.setAutoRetryMaxAttempts(3)
.setGlobalNetworkType(NetworkType.ALL)
.setHttpDownloader(OkHttpDownloader(OkHttpClient.Builder().build()))
.build()
}?.let { Fetch.getInstance(it) }
}
I am using above configuration. But when i am adding more than two request it still starts downloading 3rd or 4th request
I have same issue. But with me sometimes happened and sometimes works fine Any idea to fix it?