Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanLock ¶
type ChanLock struct {
// contains filtered or unexported fields
}
ChanLock implements a contextlock.ContextLocker that uses a Go channel to provide atomic locking and unlocking with context.Context cancellation support. This lock is resolved locally and does not require network calls.
func NewChanLock ¶
func NewChanLock() *ChanLock
NewChanLock creates a new channel-based contextlock.ContextLocker.
func (*ChanLock) LockContext ¶
LockContext implements contextlock.ContextLocker.
Click to show internal directories.
Click to hide internal directories.