this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

FileWatcher: register async to avoid blocking EDT

+5 -2
+5 -2
src/main/java/project/build/FileWatcher.kt
··· 27 27 fun start() { 28 28 try { 29 29 watchService = FileSystems.getDefault().newWatchService() 30 - registerDirectories() 31 30 startWatchJob() 32 - Logger.log("File watcher started") 31 + 32 + CoroutineScope(Dispatchers.IO).launch { 33 + registerDirectories() 34 + Logger.log("File watcher started") 35 + } 33 36 } catch (e: Exception) { 34 37 Logger.logError("Failed to start file watcher: ${e.message}") 35 38 }