watchservice-ktx icon indicating copy to clipboard operation
watchservice-ktx copied to clipboard

take() blocks indefinitely

Open hansenc opened this issue 4 years ago • 1 comments

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.

hansenc avatar Oct 02 '19 22:10 hansenc