Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedStorage ¶
type SharedStorage[T any, K comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[T any, K comparable]() *SharedStorage[T, K]
func (*SharedStorage[T, K]) CompareAndStore ¶
func (s *SharedStorage[T, K]) CompareAndStore(id K, obj T) T
func (*SharedStorage[T, K]) Leave ¶
func (s *SharedStorage[T, K]) Leave(id K) (last bool)
Click to show internal directories.
Click to hide internal directories.