utils

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT 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[Out any] interface {
	Do(f func() (Out, error)) (Out, error)
	Done() bool
	Result() (bool, Out, error)
}

func NewOnce

func NewOnce[Out any]() Once[Out]

type OnceWithInit

type OnceWithInit[Out any] interface {
	Once[Out]
	DoWithInit() (Out, error)
}

func NewOnceWithInit

func NewOnceWithInit[Out any](f func() (Out, error)) OnceWithInit[Out]

Jump to

Keyboard shortcuts

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