Shutdown stop the file watching run loop
()
| 30 | |
| 31 | // Shutdown stop the file watching run loop |
| 32 | func (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() |
| 41 | func (f *File) Start(notifier Notification) { |
no outgoing calls