Files
utils/atomic.go
T
Zach Kelling c00fc128cf feat: add wrappers and bimap packages
Add wrappers package with Packer, Errs, and Closer types for
binary serialization and error handling. These are needed by
other Lux packages that were previously importing from vm.

Add bimap package for bidirectional maps.

Update atomic.go to re-export from standalone atomic module.
2026-01-26 08:24:41 -08:00

19 lines
556 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package utils
import (
"github.com/luxfi/atomic"
)
// Atomic is a re-export from the standalone atomic module for backward compatibility.
// Use github.com/luxfi/atomic directly for new code.
type Atomic[T any] = atomic.Atomic[T]
// NewAtomic creates a new Atomic with the given initial value.
// Use github.com/luxfi/atomic.NewAtomic directly for new code.
func NewAtomic[T any](value T) *Atomic[T] {
return atomic.NewAtomic(value)
}