radovskyb / watcher

watcher is a Go package for watching for files or directory changes without using filesystem events.
BSD 3-Clause "New" or "Revised" License
1.48k stars 183 forks source link

watcher.go: replaced the orig code `time.Sleep(d)` #85

Closed ttys3 closed 2 years ago

ttys3 commented 5 years ago

watcher.go: replaced the orig code time.Sleep(d)to make w.close channel can recv

while in 'a very long Sleeping time' condition

ttys3 commented 2 years ago

oh man , two years ...