A file watcher optimized for Darwin. Uses FSEvents to avoid the terrible perf characteristics of kqueue. Requires CGO
| 33 | // A file watcher optimized for Darwin. |
| 34 | // Uses FSEvents to avoid the terrible perf characteristics of kqueue. Requires CGO |
| 35 | type fseventNotify struct { |
| 36 | stream *fsevents.EventStream |
| 37 | events chan FileEvent |
| 38 | errors chan error |
| 39 | stop chan struct{} |
| 40 | |
| 41 | pathsWereWatching map[string]any |
| 42 | closeOnce sync.Once |
| 43 | } |
| 44 | |
| 45 | func (d *fseventNotify) loop() { |
| 46 | for { |
nothing calls this directly
no outgoing calls
no test coverage detected