Files
openclaw/apps/macos/Sources/OpenClaw/SimpleFileWatcher.swift
2026-03-02 11:32:20 +00:00

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()
}
}