Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
func (*Value[T]) Get ¶
func (v *Value[T]) Get() T
Get value and acquire lock You must manually call Unlock() after using the value
func (*Value[T]) Set ¶
func (v *Value[T]) Set(newValue T)
Set value (will acquire lock before set and unlock after set)
Click to show internal directories.
Click to hide internal directories.