返回 DeepSeek-Reasonix
backend_windows.go
根目录 / internal / skill / skillwatch / backend_windows.go
1 //go:build windows
2
3 package skillwatch
4
5 // Windows always routes through the helper process: in-process fsnotify Add
6 // can block inside ReadDirectoryChangesW while another goroutine closes the
7 // watcher, which the helper isolates from the host. ForceHelper has nothing to
8 // switch to on this platform.
9 func newPlatformBackend(svc *Service, opts Options) (backend, string, *helperClient) {
10 start := opts.HelperCommand
11 if start == nil {
12 start = defaultHelperCommand
13 }
14 h := newHelperClient(start, svc)
15 return h, "helper", h
16 }
17
17 lines GO