Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jan 31, 2025
1 parent 5f43d63 commit 3f819e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class ImportBookViewModel(application: Application) : BaseViewModel(application)
channel.trySend(fileDoc)
val list = arrayListOf<FileDoc>()
channel.consumeAsFlow()
.mapParallel(64) { fileDoc ->
.mapParallel(16) { fileDoc ->
fileDoc.list()!!
}.onEach { fileDocs ->
n--
Expand Down

0 comments on commit 3f819e2

Please sign in to comment.