MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / Shutdown

Method Shutdown

watcher/file.go:32–38  ·  view source on GitHub ↗

Shutdown stop the file watching run loop

()

Source from the content-addressed store, hash-verified

30
31// Shutdown stop the file watching run loop
32func (f *File) Shutdown() {
33 // don't block if Start quit early
34 select {
35 case f.shutdown <- struct{}{}:
36 default:
37 }
38}
39
40// Start is a runloop to watch for files changes from the file paths added from Add()
41func (f *File) Start(notifier Notification) {

Callers 1

TestFileChangedFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestFileChangedFunction · 0.76