syncx

package module
v0.0.0-...-5853d4a Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 4 Imported by: 3

README

syncx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BraveDo

func BraveDo(f func(), r func(p any))

func BraveDoE

func BraveDoE(f func() error, r func(p any)) error

func BraveGo

func BraveGo(f func(), r func(p any))

func BraveGoE

func BraveGoE(f func() error, r func(p any)) <-chan error

Types

type OnceCreator

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

func NewOnceCreator

func NewOnceCreator[T any](createObject func() T) (*OnceCreator[T], error)

func (*OnceCreator[T]) LoadOrCreate

func (m *OnceCreator[T]) LoadOrCreate(key string) T

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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