Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock is a memory-based implementation of guard.Lock. Lock is not safe to call from different application instances. Lock is meant to be used in a single application instance.
type LockerFactory ¶
type LockerFactory[Key comparable] struct { // contains filtered or unexported fields }
func NewLockerFactory ¶
func NewLockerFactory[Key comparable]() *LockerFactory[Key]
func (*LockerFactory[Key]) LockerFor ¶
func (lf *LockerFactory[Key]) LockerFor(key Key) guard.Locker
func (*LockerFactory[Key]) NonBlockingLockerFor ¶
func (lf *LockerFactory[Key]) NonBlockingLockerFor(key Key) guard.NonBlockingLocker
Click to show internal directories.
Click to hide internal directories.