loop

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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)
	Reset(h Handler[T], size uint64) Interface[T]
}

func Empty added in v0.15.3

func Empty[T any]() Interface[T]

func New

func New[T any](h Handler[T], size uint64) Interface[T]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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