Skip to content

Commit

Permalink
doc(text/spinner): clarify SpinnerProcess signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed Oct 2, 2023
1 parent 1bdc157 commit 7ba5b64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/text/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ type Spinner interface {
}

// SpinnerProcess is the logic to execute in between the spinner start/stop.
//
// NOTE: The `sp` SpinnerWrapper is passed in to handle more complex scenarios.
// For example, the logic inside the SpinnerProcess might want to control the
// Start/Stop mechanisms outside of the basic flow provided by `Process()`.
type SpinnerProcess func(sp *SpinnerWrapper) error

// SpinnerWrapper implements the Spinner interface.
Expand Down

0 comments on commit 7ba5b64

Please sign in to comment.