scutil

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap added in v0.20.1

func Wrap[T any](fn func(ctx context.Context) (T, error), freshFor, ttl time.Duration) func(ctx context.Context) (T, error)

func WrapFunc added in v0.20.1

func WrapFunc[T any](fn func(ctx context.Context) (T, error)) func(ctx context.Context, _ struct{}) (T, error)

Types

type Coalescer

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

func NewCoalescer

func NewCoalescer(fn func(ctx context.Context) error) *Coalescer

func (*Coalescer) Do

func (c *Coalescer) Do(ctx context.Context) error

Jump to

Keyboard shortcuts

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