sync

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sync contains abstractions for working with concurrent writers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer protects any io.Writer with a mutex.

func NewWriter

func NewWriter(w io.Writer) *Writer

NewWriter wraps an io.Writer with a mutex.

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Write implements io.Writer with mutex protection.

Jump to

Keyboard shortcuts

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