threadsafe

package
v1.83.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

See the tsmap and tsslice packages for examples of how to use 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 map utility functions that can be safely used between multiple goroutines.
Package tsmap provides a collection of generic thread-safe map utility functions that can be safely used between multiple goroutines.
Package tsslice provides a collection of generic thread-safe slice utility functions that can be safely used between multiple goroutines.
Package tsslice provides a collection of generic thread-safe slice utility functions that can be safely used between multiple goroutines.

Jump to

Keyboard shortcuts

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