Skip to content

Commit f704684

Browse files
committed
make hashJob use dispatchers.io
1 parent e1c8535 commit f704684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/polyfrost/polyplus/utils/HashManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class HashManager(val file: File) {
1313
private var hashJob: Deferred<Unit> = CompletableDeferred()
1414

1515
init {
16-
hashJob = PolyPlusClient.SCOPE.async {
16+
hashJob = PolyPlusClient.SCOPE.async(Dispatchers.IO) {
1717
if (!file.exists()) {
1818
file.parentFile?.mkdirs()
1919
file.createNewFile()

0 commit comments

Comments
 (0)