Skip to content

Commit

Permalink
Wrap storing trees into read action
Browse files Browse the repository at this point in the history
  • Loading branch information
SpirinEgor committed Jul 22, 2021
1 parent 1e2a185 commit acdf099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/psi/PsiProjectParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class PsiProjectParser(
}
samples.forEach {
withContext(Dispatchers.IO) {
storeCallback(it.root, it.label, holdout)
ReadAction.run<Throwable> { storeCallback(it.root, it.label, holdout) }
if (config.printTrees) printTree(it.root, true)
}
}
Expand Down

0 comments on commit acdf099

Please sign in to comment.