Files
openclaw/apps/macos/Sources/OpenClaw/CanvasFileWatcher.swift

13 lines
378 B
Swift
Raw Normal View History

2026-01-27 14:12:17 -06:00
import Foundation
final class CanvasFileWatcher: @unchecked Sendable, SimpleFileWatcherOwner {
let watcher: SimpleFileWatcher
2026-01-27 14:12:17 -06:00
init(url: URL, onChange: @escaping () -> Void) {
self.watcher = SimpleFileWatcher(CoalescingFSEventsWatcher(
2026-02-15 20:07:12 +00:00
paths: [url.path],
queueLabel: "ai.openclaw.canvaswatcher",
onChange: onChange))
2026-01-27 14:12:17 -06:00
}
}