openclaw/apps/macos/Sources/OpenClaw/SimpleFileWatcherOwner.swift

16 lines
254 B
Swift

import Foundation
protocol SimpleFileWatcherOwner: AnyObject {
var watcher: SimpleFileWatcher { get }
}
extension SimpleFileWatcherOwner {
func start() {
self.watcher.start()
}
func stop() {
self.watcher.stop()
}
}