FileWatcher

constructor(file: File, debounceMs: Long = 500, onReload: () -> Unit)

Parameters

file

The file to watch for modifications.

debounceMs

The debounce delay in milliseconds. Defaults to 500.

onReload

The callback invoked when the file is modified (after debounce).