mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
13 lines
378 B
Swift
13 lines
378 B
Swift
import Foundation
|
|
|
|
final class CanvasFileWatcher: @unchecked Sendable, SimpleFileWatcherOwner {
|
|
let watcher: SimpleFileWatcher
|
|
|
|
init(url: URL, onChange: @escaping () -> Void) {
|
|
self.watcher = SimpleFileWatcher(CoalescingFSEventsWatcher(
|
|
paths: [url.path],
|
|
queueLabel: "ai.openclaw.canvaswatcher",
|
|
onChange: onChange))
|
|
}
|
|
}
|