MCPcopy
hub / github.com/pterm/pterm / WithDelay

Method WithDelay

spinner_printer.go:74–77  ·  view source on GitHub ↗

WithDelay adds a delay to the SpinnerPrinter.

(delay time.Duration)

Source from the content-addressed store, hash-verified

72
73// WithDelay adds a delay to the SpinnerPrinter.
74func (s SpinnerPrinter) WithDelay(delay time.Duration) *SpinnerPrinter {
75 s.Delay = delay
76 return &s
77}
78
79// WithMessageStyle adds a style to the SpinnerPrinter message.
80func (s SpinnerPrinter) WithMessageStyle(style *Style) *SpinnerPrinter {

Callers 2

Calls

no outgoing calls

Tested by 2