js添加一个并发访问网络

pull/909/head
gedoor 4 years ago
parent 66fe4b017b
commit e4dd5896d0
  1. 2
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -45,7 +45,7 @@ interface JsExtensions {
/**
* 并发访问网络
*/
fun fetchAll(urlList: List<String>): Array<StrResponse?> {
fun ajaxAll(urlList: List<String>): Array<StrResponse?> {
return runBlocking {
val asyncArray = Array(urlList.size) {
async {

Loading…
Cancel
Save