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

22 lines
360 B
Swift

import Foundation
final class SimpleFileWatcher: @unchecked Sendable {
private let watcher: CoalescingFSEventsWatcher
init(_ watcher: CoalescingFSEventsWatcher) {
self.watcher = watcher
}
deinit {
self.stop()
}
func start() {
self.watcher.start()
}
func stop() {
self.watcher.stop()
}
}