raceutil

package
v0.2.134 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockedWriter

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

https://www.reddit.com/r/golang/comments/6bpmtj/writing_to_a_file_on_multiple_threads/

func NewLockedWriter

func NewLockedWriter(w io.Writer) *LockedWriter

func (*LockedWriter) Write

func (lw *LockedWriter) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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