Versions in this module Expand all Collapse all v1 v1.8.1 Jan 23, 2025 v1.8.0 Jan 23, 2025 v1.7.0 Jan 23, 2025 v1.6.0 Jan 22, 2025 v1.5.0 Jan 17, 2025 v1.4.0 Jan 17, 2025 v1.3.1 Jan 17, 2025 v1.3.0 Jan 14, 2025 v1.2.0 Jan 7, 2025 v1.1.0 Dec 30, 2024 v1.0.7 Dec 28, 2024 v1.0.6 Dec 28, 2024 v1.0.5 Dec 28, 2024 v1.0.4 Dec 28, 2024 v1.0.3 Dec 28, 2024 v1.0.2 Dec 28, 2024 v1.0.1 Dec 28, 2024 v1.0.0 Dec 28, 2024 Changes in this version + func PerformAction[T interface{}](action *Action[T], f ActionFunction[T]) tea.Cmd + type Action struct + Attempt uint + Data *T + Error error + Finished bool + Name string + Result bool + Started bool + func NewAction[T interface{}](name string) Action[T] + func (a *Action[T]) Reset() + func (a *Action[T]) ResetTea() tea.Cmd + func (a *Action[T]) Restart() + func (a *Action[T]) Start() + func (a *Action[T]) StartTea() tea.Cmd + func (a Action[T]) HasData() bool + func (a Action[T]) IsDone() bool + func (a Action[T]) IsError() bool + func (a Action[T]) IsLoading() bool + func (a Action[T]) IsSuccess() bool + func (action *Action[T]) ProcessInit(a ActionInit[T]) + func (action *Action[t]) ProcessResult(res ActionResult[t]) + type ActionFunction func() (*T, error) + type ActionInit struct + Name string + type ActionResult struct + Data *T + Error error + ForAttempt uint + Name string + Result bool + func NewResult[T interface{}](a Action[T], success bool, err error, data *T, attempt uint) ActionResult[T] + func (a ActionResult[T]) IsFor(action *Action[T]) bool + type Actions []*Action[any] + func (a Actions) ProcessResults(res ActionResult[any])