PathWatcher

Responsible for watching a set of paths for changes and acting on the changes.

Inheritors

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
abstract fun onChange(fn: (List<Path>) -> Unit): PathWatcher
Link copied to clipboard
abstract fun onFailure(fn: (String) -> Unit): PathWatcher
Link copied to clipboard
abstract fun onSuccess(fn: () -> Unit): PathWatcher
Link copied to clipboard
abstract fun start()
Link copied to clipboard
abstract fun stop()
Link copied to clipboard
abstract fun watch(newPaths: List<Path>)