You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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))
|
|
}
|
|
}
|