Documentation ¶
Overview ¶
Package iosync provides reader/writer implementations that wrap operations in a mutex so that concurrent reads and writes are safe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadWriter ¶
func ReadWriter(rw io.ReadWriter) io.ReadWriter
ReadWriter returns an io.ReadWriter where reading/writing concurrently is safe. Both read/write operations will share the same mutex. All operations are exclusive. We do not use a RWMutex because most io.Readers aren't inherently safe to concurrent read access.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.