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

Method Start

pkg/watch/watcher_darwin.go:81–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (d *fseventNotify) Start() error {
82 if len(d.stream.Paths) == 0 {
83 return nil
84 }
85
86 d.closeOnce = sync.Once{}
87
88 numberOfWatches.Add(int64(len(d.stream.Paths)))
89
90 err := d.stream.Start()
91 if err != nil {
92 return err
93 }
94 go d.loop()
95 return nil
96}
97
98func (d *fseventNotify) Close() error {
99 d.closeOnce.Do(func() {

Callers

nothing calls this directly

Calls 3

loopMethod · 0.95
StartMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected