We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de97dc3 commit 02e2e17Copy full SHA for 02e2e17
hoplite-watch/src/main/kotlin/com/sksamuel/hoplite/watch/watchers/file.kt
@@ -27,7 +27,7 @@ class FileWatcher(private val dir: String) : Watchable {
27
StandardWatchEventKinds.ENTRY_DELETE
28
)
29
30
- Executors.newSingleThreadExecutor().submit {
+ Executors.newSingleThreadExecutor { Thread(it).apply { isDaemon = true } }.submit {
31
while (true) {
32
try {
33
val watchKey = watchService.take()
0 commit comments