watchservice-ktx
watchservice-ktx copied to clipboard
take() blocks indefinitely
It looks like the core loop is using up a lot more CPU than it should due to a busy-wait, correct? Would it be better to sleep between iterations?
Btw, thanks for the blog post and WatchService
example! Even though I don't know Kotlin, I found it easy to follow.