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.
gpt-pilot/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()
}
}