package syncx

Import Path
	go.pact.im/x/syncx (on go.dev)

Dependency Relation
	imports 2 packages, and imported by one package

Involved Source Files Package syncx provides additional synchronization mechanisms and utilities. lock.go map.go
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. 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.