sync

package
v0.7.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: GPL-3.0, LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package sync extends the standard library's sync package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cond

type Cond = sync.Cond

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type Locker

type Locker = sync.Locker

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type Map

type Map = sync.Map

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type Mutex

type Mutex = sync.Mutex

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type Once

type Once = sync.Once

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type Pool

type Pool[T any] struct {
	New func() T
	// contains filtered or unexported fields
}

A Pool is a type-safe wrapper around sync.Pool.

func (*Pool[T]) Get

func (p *Pool[T]) Get() T

Get is equivalent to sync.Pool.Get.

func (*Pool[T]) Put

func (p *Pool[T]) Put(t T)

Put is equivalent to sync.Pool.Put.

type RWMutex

type RWMutex = sync.RWMutex

Aliases of stdlib sync's types to avoid having to import it alongside this package.

type WaitGroup

type WaitGroup = sync.WaitGroup

Aliases of stdlib sync's types to avoid having to import it alongside this package.

Jump to

Keyboard shortcuts

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