syncx

package
v0.4.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synced

type Synced[T any, V any] struct {
	// contains filtered or unexported fields
}

func NewSynced

func NewSynced[T any, V any](t T) *Synced[T, V]

func (*Synced[T, V]) DoRead

func (s *Synced[T, V]) DoRead(f func(v T) (V, error)) (V, error)

func (*Synced[T, V]) DoWrite

func (s *Synced[T, V]) DoWrite(f func(v T) (V, error)) (V, error)

Jump to

Keyboard shortcuts

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