FileWatcherDelegate

constructor(program: Program, file: File, valueChangedEvent: Event<T>? = null, requestStopEvent: Event<Unit>? = null, transducer: (File) -> T)(source)

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