Package-level declarations

Types

Link copied to clipboard
class FileWatcher(file: File, fileChangedEvent: Event<File>, requestStopEvent: Event<Unit>? = null)
Link copied to clipboard
class FileWatcherDelegate<T>(program: Program, file: File, valueChangedEvent: Event<T>? = null, requestStopEvent: Event<Unit>? = null, transducer: (File) -> T)

Property delegator that watches a file. Changes are propagated right before the Program updates its extensions

Functions

Link copied to clipboard
fun <R> watchFile(file: File, valueChangedEvent: Event<R>? = null, requestStopEvent: Event<Unit>? = null, transducer: (File) -> R): () -> R

Watch a file for changes

Link copied to clipboard
fun <R> Program.watchingFile(file: File, valueChangedEvent: Event<R>? = null, requestStopEvent: Event<Unit>? = null, transducer: (File) -> R): FileWatcherDelegate<R>

Delegate value to a file watcher