mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 05:57:28 +00:00
refactor(macos): dedupe UI, pairing, and runtime helpers
This commit is contained in:
21
apps/macos/Sources/OpenClaw/SimpleFileWatcher.swift
Normal file
21
apps/macos/Sources/OpenClaw/SimpleFileWatcher.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user