Fixed flow warning

This commit is contained in:
Abdelilah El Aissaoui 2022-02-20 23:02:12 +01:00
parent d8d4147d18
commit a2d687caa8

View File

@ -1,6 +1,8 @@
package app.git
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import java.io.IOException
import java.nio.file.*
import java.nio.file.StandardWatchEventKinds.*
@ -42,6 +44,6 @@ class FileChangesWatcher @Inject constructor() {
key.pollEvents()
key.reset()
}
}
}.flowOn(Dispatchers.IO)
}