sync

package
v2.280.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package sync provides synchronization helpers and wrappers used by go-service.

This package re-exports a small subset of synchronization primitives and types, including a generic Map and a buffer pool backed by the external `github.com/alexfalkowski/go-sync` package, and mutex types from the standard library `sync` package.

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

This section is empty.

Types

type BufferPool

type BufferPool = sync.BufferPool

BufferPool is an alias for go-sync.BufferPool.

func NewBufferPool

func NewBufferPool() *BufferPool

NewBufferPool is an alias for go-sync.NewBufferPool.

type Map added in v2.260.0

type Map[K comparable, V any] = sync.Map[K, V]

Map is an alias for go-sync.Map.

func NewMap added in v2.269.0

func NewMap[K comparable, V any]() Map[K, V]

NewMap is an alias for go-sync.NewMap.

type Mutex

type Mutex = sync.Mutex

Mutex is an alias of sync.Mutex.

type RWMutex

type RWMutex = sync.RWMutex

RWMutex is an alias of sync.RWMutex.

Jump to

Keyboard shortcuts

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