Documentation ¶
Index ¶
- type LiveTasks
- func (l *LiveTasks) AllOk() bool
- func (l *LiveTasks) Header(header func(over bool, allOk bool) string)
- func (l *LiveTasks) OnPreRun(handler LiveTasksHandlerFunc)
- func (l *LiveTasks) OnRun(handler LiveTasksHandlerFunc)
- func (l *LiveTasks) Over() bool
- func (l *LiveTasks) Start()
- func (l *LiveTasks) StartAndWait()
- func (l *LiveTasks) Wait()
- type LiveTasksHandlerFunc
- type TaskHandlerFunc
- type TasksExecutor
- type UpdateDisplayFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LiveTasks ¶
type LiveTasks struct {
// contains filtered or unexported fields
}
func NewLiveTasks ¶
func (*LiveTasks) OnPreRun ¶
func (l *LiveTasks) OnPreRun(handler LiveTasksHandlerFunc)
func (*LiveTasks) OnRun ¶
func (l *LiveTasks) OnRun(handler LiveTasksHandlerFunc)
func (*LiveTasks) StartAndWait ¶
func (l *LiveTasks) StartAndWait()
type LiveTasksHandlerFunc ¶
type LiveTasksHandlerFunc func(id int, te *TasksExecutor, update UpdateDisplayFunc) error
type TaskHandlerFunc ¶
type TaskHandlerFunc func(id int, te *TasksExecutor) error
type TasksExecutor ¶
type TasksExecutor struct { OnPreRun TaskHandlerFunc OnRun TaskHandlerFunc // contains filtered or unexported fields }
func NewTasksExecutor ¶
func NewTasksExecutor(tasks int, concurrency int) *TasksExecutor
func (*TasksExecutor) Start ¶
func (te *TasksExecutor) Start()
func (*TasksExecutor) Wait ¶
func (te *TasksExecutor) Wait()
type UpdateDisplayFunc ¶
type UpdateDisplayFunc func(display string)
Click to show internal directories.
Click to hide internal directories.