Registry / utility / puzpuzpuz-xsync-v2

puzpuzpuz-xsync-v2

JSON →
library2.5.1gogounverified

Concurrent data structures for Go, including maps and queues, optimized for high contention.

go get github.com/puzpuzpuz/xsync/v2
INSTALL
IMPORT
SIG · PUZPUZPUZ-XSYNC-V2
P
puzpuzpuz-xsync-v2
utilitygov2.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

xsync
github.com/puzpuzpuz/xsync/v2

Use a concurrent map from xsync.

package main import ( "fmt" "github.com/puzpuzpuz/xsync/v2" ) func main() { m := xsync.NewMap() m.Store("key", "value") val, ok := m.Load("key") fmt.Println(val, ok) }
Debug
Known issues
breakingBreaking changes from v1 to v2: the API was redesigned; some types and methods were removed or renamed.
fix
Update import path to /v2 and adapt code to the new API (e.g., NewMap instead of New).
affects: >=2.0.0
Upgrade
Version history
2.5.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
puzpuzpuz-xsync-v2 — go get puzpuzpuz-xsync-v2 · libregistry