syncx

package
v0.0.0-...-83ab7ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package syncx contains small synchronization primitives shared by Axiom frontends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyedLocker

type KeyedLocker struct {
	// contains filtered or unexported fields
}

KeyedLocker serializes work for one key while allowing independent keys to run concurrently. Lock returns an idempotent-by-contract unlock function that must be called exactly once.

func NewKeyedLocker

func NewKeyedLocker() *KeyedLocker

func (*KeyedLocker) Lock

func (k *KeyedLocker) Lock(key string) func()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL