sync

package
v0.0.0-...-a510a1c Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 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 Once

type Once = sync.Once

type OnceValue

type OnceValue[T any] struct {
	// contains filtered or unexported fields
}

func (*OnceValue[T]) Do

func (o *OnceValue[T]) Do(f func() T) T

type OnceValues

type OnceValues[T1, T2 any] struct {
	// contains filtered or unexported fields
}

func (*OnceValues[T1, T2]) Do

func (o *OnceValues[T1, T2]) Do(f func() (T1, T2)) (T1, T2)

Jump to

Keyboard shortcuts

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