Documentation
¶
Overview ¶
Arc is an atomically reference counted generic type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arc ¶
type Arc[T any] struct { // contains filtered or unexported fields }
Arc is an atomically reference counted generic type. It is specifically designed to be used in a pool.
type ArcPool ¶
ArcPool is a sync pool based on reference counting. When the counter reaches zero, the value is returned to the pool.
func NewArcPool ¶
NewArcPool creates a new ArcPool[T].
Click to show internal directories.
Click to hide internal directories.