threadsafe

package
v1.101.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package threadsafe provides an interface for thread-safe functions that can be safely used across multiple goroutines.

See the examples in the github.com/Vonage/gosrvlib/pkg/tsmap and github.com/Vonage/gosrvlib/pkg/tsslice packages for usage of this interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker sync.Locker

Locker is an interface that implements the Lock and Unlock methods.

type RLocker

type RLocker interface {
	RLock()
	RUnlock()
}

RLocker is an interface that implements the RLock and RUnlock methods.

Directories

Path Synopsis
Package tsmap provides a collection of generic thread-safe Go map utility functions that can be safely used between multiple goroutines.
Package tsmap provides a collection of generic thread-safe Go map utility functions that can be safely used between multiple goroutines.
Package tsslice provides a collection of generic thread-safe Go slice utility functions that can be safely used across multiple goroutines.
Package tsslice provides a collection of generic thread-safe Go slice utility functions that can be safely used across multiple goroutines.

Jump to

Keyboard shortcuts

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