Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: | */
Lock is a mutually exclusive lock that supports cancelling acquire operation.
Acquire locks c. If the lock is already in use, the calling goroutine blocks
until either the lock is available or the context expires. It returns nil
if the lock was acquired and a non-nil context error otherwise.
Release unlocks c. Unlike sync.Mutex, it is valid to release a Lock without
a corresponding Acquire. In that case the next Acquire call will unlock the
Release.
func NewLock() Lock
Type Parameters:
K: any
V: any
Map is a type-safe wrapper for sync.Map.
msync.Map
Delete is a type-safe wrapper for sync.Map’s Delete method.
Load is a type-safe wrapper for sync.Map’s Load method.
LoadAndDelete is a type-safe wrapper for sync.Map’s LoadAndDelete method.
LoadOrStore is a type-safe wrapper for sync.Map’s LoadOrStore method.
Range is a type-safe wrapper for sync.Map’s Range method.
Store is a type-safe wrapper for sync.Map’s Store method.
Package-Level Functions (only one, which is exported)
NewLock returns a new Lock that allows at most one goroutine to acquire it.
The pages are generated with Goldsv0.4.9. (GOOS=linux GOARCH=amd64)