sync

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package sync is the legacy retryable-once import path.

New code should import the focused replacement package:

import "github.com/InsideGallery/core/multiproc/once"

Compatibility: existing exports remain available for downstream consumers that still import multiproc/sync. Do not add new helpers here; add retryable-once behavior to multiproc/once so call sites avoid a local name collision with the standard-library sync package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Once

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

Once is an object that will perform exactly one action.

func (*Once) Do

func (o *Once) Do(f func() error) error

Do calls function once, if it return error do not lock call

func (*Once) Reset

func (o *Once) Reset()

Reset reset once

Jump to

Keyboard shortcuts

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