MCPcopy
hub / github.com/docker/compose / fseventNotify

Struct fseventNotify

pkg/watch/watcher_darwin.go:35–43  ·  pkg/watch/watcher_darwin.go::fseventNotify

A file watcher optimized for Darwin. Uses FSEvents to avoid the terrible perf characteristics of kqueue. Requires CGO

Source from the content-addressed store, hash-verified

33// A file watcher optimized for Darwin.
34// Uses FSEvents to avoid the terrible perf characteristics of kqueue. Requires CGO
35type 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
45func (d *fseventNotify) loop() {
46 for {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected