iosync

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL