From: Matt Joiner Date: Thu, 17 Aug 2023 08:14:46 +0000 (+1000) Subject: Note that torrent.Reader is not concurrent-safe X-Git-Url: http://www.git.stargrave.org/?p=btrtrc.git;a=commitdiff_plain;h=de3309319f036d9b344aad296d9b1b7c9f786468 Note that torrent.Reader is not concurrent-safe --- diff --git a/reader.go b/reader.go index 9670ff09..4b20206c 100644 --- a/reader.go +++ b/reader.go @@ -12,7 +12,7 @@ import ( ) // Accesses Torrent data via a Client. Reads block until the data is available. Seeks and readahead -// also drive Client behaviour. +// also drive Client behaviour. Not safe for concurrent use. type Reader interface { io.ReadSeekCloser missinggo.ReadContexter