progress

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracker

type Tracker interface {
	OnEvent(any)
}

Tracker receives progress events during image operations. Implementations must be safe for concurrent use from multiple goroutines.

var Nop Tracker = funcTracker(func(any) {})

Nop is a no-op tracker for callers that don't need progress.

func NewTracker

func NewTracker[E any](fn func(E)) Tracker

NewTracker creates a Tracker from a typed callback function. The caller works with a concrete event type; the Tracker interface stays non-generic so it can be used in interfaces like Images.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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