diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-31 16:20:45 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-31 16:20:45 +0200 |
commit | d34760a5b71d7f066ddb301a3057410aed8a2dc4 (patch) | |
tree | e50eeddc745e2a5dadf17807579b221ab9ed5d89 /skate/xio/util.go | |
parent | c77e97c6e3ee0c5b95d8529750751393c17d41e5 (diff) | |
download | refcat-d34760a5b71d7f066ddb301a3057410aed8a2dc4.tar.gz refcat-d34760a5b71d7f066ddb301a3057410aed8a2dc4.zip |
xio: mention lock
there are other lock-free implementations, such as
https://github.com/cloudfoundry/go-diodes
Diffstat (limited to 'skate/xio/util.go')
-rw-r--r-- | skate/xio/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skate/xio/util.go b/skate/xio/util.go index 90a1012..10225a1 100644 --- a/skate/xio/util.go +++ b/skate/xio/util.go @@ -9,7 +9,7 @@ import ( "sync" ) -// SyncWriter makes any writer thread safe. +// SyncWriter makes any writer thread safe, using a lock. type SyncWriter struct { sync.Mutex w io.Writer |