mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
22 lines
360 B
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()
|
|
}
|
|
}
|