sync

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sync contains a series of functions, types and subpackages which can be used for concurrent purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

Buffer is a partial bytes.Buffer implementation that complies both with the io.ReadWriter interface

func NewBuffer

func NewBuffer(f ...func()) *Buffer

NewBuffer constructs a new concurrently safe byte buffer. Accepts multiple functions to be sent that will be called on each Write.

func (*Buffer) Read

func (buf *Buffer) Read(p []byte) (n int, err error)

func (*Buffer) String

func (buf *Buffer) String() string

func (*Buffer) Write

func (buf *Buffer) Write(p []byte) (n int, err error)

Directories

Path Synopsis
Package pool provies an API to queue and concurrently execute a series of tasks or work.
Package pool provies an API to queue and concurrently execute a series of tasks or work.

Jump to

Keyboard shortcuts

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