Documentation
¶
Overview ¶
Package progress shares the progress and cancellation of one long-running operation between the goroutine doing the work and whoever displays it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCanceled ¶
IsCanceled reports whether err is a user abort rather than a real failure.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker safely shares progress between a tea.Cmd goroutine and the TUI.
func NewTracker ¶
NewTracker creates an indeterminate tracker with the given initial phase.
func (*Tracker) Cancel ¶
func (t *Tracker) Cancel()
Cancel asks the running operation to stop. Already-finished work is kept.
Click to show internal directories.
Click to hide internal directories.