Help us shape the future of Go! Take the 2026 Go Developer Survey

loop

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.16.2

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

func New

func New[T any](size uint64) *Factory[T]

func (*Factory[T]) CacheLoop added in v0.16.2

func (f *Factory[T]) CacheLoop(l Interface[T])

func (*Factory[T]) NewLoop added in v0.16.2

func (f *Factory[T]) NewLoop(h Handler[T]) Interface[T]

type Handler added in v0.15.3

type Handler[T any] interface {
	Handle(ctx context.Context, t T) error
}

type Interface added in v0.15.3

type Interface[T any] interface {
	Run(ctx context.Context) error
	Enqueue(t T)
	Close(t T)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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