]> go.fuhry.dev Git - fsnotify.git/commitdiff
Clarify FAQ on goroutines
authorMartin Tournoij <martin@arp242.net>
Sat, 30 Jul 2022 11:15:01 +0000 (13:15 +0200)
committerMartin Tournoij <martin@arp242.net>
Sat, 30 Jul 2022 11:15:01 +0000 (13:15 +0200)
Fixes #71

README.md

index b6d86e687fb02ea2787961564da3521f099d916e..9ce2965b86e11bd59d7cf09447fd3cea5a84bda2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -87,7 +87,8 @@ watcher is on the roadmap: [#18]).
 [#18]: https://github.com/fsnotify/fsnotify/issues/18
 
 ### Do I have to watch the Error and Event channels in a separate goroutine?
-As of now, yes.
+As of now, yes (you can read both channels in the same goroutine, you don't need
+a separate goroutine for both channels; see the example).
 
 ### Why don't notifications work with NFS, SMB, or FUSE?
 fsnotify requires support from underlying OS to work. The current NFS and SMB