Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextLock ¶
type ContextLock struct {
// contains filtered or unexported fields
}
func NewContextLock ¶
func NewContextLock() *ContextLock
NewContextLock creates a new context lock ContextLock allows to create a lock which can't be double-locked It's useful to avoid race conditions when a function is called in multiple places and the function needs to be called only once.
Click to show internal directories.
Click to hide internal directories.