Skip to content

Commit

Permalink
Fix wasm ui stall
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Feb 15, 2024
1 parent 8b6f05b commit 589bbae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ fun rememberSpellChecker(): SpellChecker? {
.lineSequence()
.forEachAsync { line ->
checker.dataHolder.loadUniGramLine(line)
yield()
}

readResourceBytes("raw/frequency_bigramdictionary_en_243_342.txt")
.decodeToString()
.lineSequence()
.forEachAsync { line ->
checker.dataHolder.loadBiGramLine(line)
yield()
}
}
println("Dictionary Loaded in: $mills ms")
Expand Down

0 comments on commit 589bbae

Please sign in to comment.