Fixed flow warning
This commit is contained in:
parent
d8d4147d18
commit
a2d687caa8
@ -1,6 +1,8 @@
|
|||||||
package app.git
|
package app.git
|
||||||
|
|
||||||
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.flow.flow
|
import kotlinx.coroutines.flow.flow
|
||||||
|
import kotlinx.coroutines.flow.flowOn
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.nio.file.*
|
import java.nio.file.*
|
||||||
import java.nio.file.StandardWatchEventKinds.*
|
import java.nio.file.StandardWatchEventKinds.*
|
||||||
@ -42,6 +44,6 @@ class FileChangesWatcher @Inject constructor() {
|
|||||||
key.pollEvents()
|
key.pollEvents()
|
||||||
key.reset()
|
key.reset()
|
||||||
}
|
}
|
||||||
}
|
}.flowOn(Dispatchers.IO)
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user