Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSListLockToken ¶
type DSListLockToken interface {
// contains filtered or unexported methods
}
DSListLockToken represents proof that a list lock has been acquired
type DSListLocker ¶
type DSListLocker struct {
// contains filtered or unexported fields
}
DSListLocker
func (*DSListLocker) WithLock ¶
func (r *DSListLocker) WithLock(f func(l DSListLockToken))
WithLock acquires a lock for the duration that the provided function is being executed. A token as proof of the lock is passed to the function.
Click to show internal directories.
Click to hide internal directories.