Next blocks until a file system event occurs or the context is canceled. It returns the next event or an error if the watcher encountered a problem.
(context.Context)
| 30 | // Next blocks until a file system event occurs or the context is canceled. |
| 31 | // It returns the next event or an error if the watcher encountered a problem. |
| 32 | Next(context.Context) (*fsnotify.Event, error) |
| 33 | |
| 34 | // Close shuts down the watcher and releases any resources. |
| 35 | Close() error |
no outgoing calls