hync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

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

func NewLine

func NewLine() *Line

func (*Line) Do

func (line *Line) Do(call func() error) error

type On

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

func NewOn

func NewOn[T any](on ...func(ctx *T)) *On[T]

func (*On[T]) Add

func (w *On[T]) Add(on func(ctx *T))

func (*On[T]) On

func (w *On[T]) On(ctx *T)

type Single

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

func NewSingle

func NewSingle() *Single

func NewSingleWithExpire

func NewSingleWithExpire(defaultExpiration, cleanupInterval time.Duration) *Single

func (*Single) Do

func (s *Single) Do(key string, call func() error) error

Jump to

Keyboard shortcuts

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