part

package
v0.28.20240402171049 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStopRun = errors.New("ErrStopRun")
	ErrSelfDel = errors.New("ErrSelfDel")
)

Functions

This section is empty.

Types

type Component

type Component[T, E any] struct {
	// contains filtered or unexported fields
}

func NewComp

func NewComp[T, E any](deal func(ctx context.Context, ptr T) (ret E, err error)) *Component[T, E]

func (*Component[T, E]) Del

func (t *Component[T, E]) Del()

func (*Component[T, E]) Run

func (t *Component[T, E]) Run(ctx context.Context, ptr T) (ret E, err error)

Jump to

Keyboard shortcuts

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