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.
func NewChanLock ¶
func NewChanLock() *ChanLock
NewChanLock creates a new channel-based contextlock.ContextLocker.
func (*ChanLock) ContextLock ¶
ContextLock implements contextlock.ContextLocker.
func (*ChanLock) ContextUnlock ¶
ContextUnlock implements contextlock.ContextLocker.
Click to show internal directories.
Click to hide internal directories.