package
Version:
v3.3.16
Opens a new window with list of versions in this module.
Published: Dec 11, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type PathMutex struct {
}
PathMutex provides per-path locking to allow concurrent operations on different paths
NewPathMutex creates a new path mutex
Lock acquires a lock for the given path
Unlock releases the lock for the given path
type Pool[T any] struct {
}
Pool is a generic wrapper around sync.Pool for type-safe pooling
func NewPool[T any](newFn func() T) *Pool[T]
NewPool creates a new type-safe pool with the given constructor function
func (p *Pool[T]) Get() T
Get retrieves an item from the pool
func (p *Pool[T]) Put(x T)
Put returns an item to the pool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.