FileWatcherDelegate
class FileWatcherDelegate<T>(program: Program, file: File, valueChangedEvent: Event<T>? = null, requestStopEvent: Event<Unit>? = null, transducer: (File) -> T)(source)
Property delegator that watches a file. Changes are propagated right before the Program updates its extensions
Since
0.4.3
Parameters
program
the program to synchronise updates with
file
the file to watch
valueChangedEvent
the event that is triggered when the value (after transformation) has changed
requestStopEvent
an event that can be triggered to request the watcher to stop