js添加一个并发访问网络

pull/909/head
gedoor 4 years ago
parent 3bf864fc23
commit 4024028923
  1. 2
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -11,7 +11,6 @@ import io.legado.app.model.Debug
import io.legado.app.model.analyzeRule.AnalyzeUrl
import io.legado.app.model.analyzeRule.QueryTTF
import io.legado.app.utils.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.async
import kotlinx.coroutines.runBlocking
import org.jsoup.Connection
@ -46,7 +45,6 @@ interface JsExtensions {
/**
* 并发访问网络
*/
@ExperimentalCoroutinesApi
fun fetchAll(urlList: List<String>): Array<StrResponse?> {
return runBlocking {
val asyncArray = Array(urlList.size) {

Loading…
Cancel
Save