package
0.0.0-20241212132234-0076f9e1ccd7
Repository: https://github.com/basecomplextech/baselibrary.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FreeAll frees all objects.
FreeFunc returns an adapter which allows to use a function as a Freer.
New returns a new reference with refcount 1.
NewFree returns a new reference with a free function.
NewFreeGroup returns a new free group.
NewFreer returns a new reference with a custom freer.
NewNoop returns a new reference with no freer.
NewShardedVar returns a new concurrent variable.
NewVar returns a new empty atomic variable.
Next returns a child reference with a parent reference as a freer.
NextRetain returns a new reference with a parent reference as a freer, retains the parent.
ReleaseAll releases all references.
Retain retains and returns a reference.
RetainAll retains all references.
SwapFree frees an old object and returns the new.
SwapNoRetain releases an old reference, and returns a new one.
SwapRetain retains a new reference, releases an old one and returns the new.

# Structs

Atomic32 is an atomic int32 reference counter with a released bit.
Atomic64 is an atomic int64 reference counter with a released bit.

# Interfaces

FreeGroup frees objects when the group is freed.
Freer specifies an object which can be freed.
R is a generic atomic countable reference.
Ref is a countable reference interface without generics, i.e.
ShardedVar is a sharded rwmutex-based variable which holds a value reference.
Var is an atomic non-blocking variable which holds a value reference.