Documentation ¶
Index ¶
- func AddConditions(p *Process, condition ...bool)
- func WrapFunc(f func()) func(ctx context.Context) error
- type Process
- func (p *Process) AddConditions(condition ...bool)
- func (p *Process) AddTasks(task ...*Task)
- func (p *Process) Clear()
- func (p *Process) ContinueExec() error
- func (p *Process) Exec() error
- func (p *Process) ExecOffset(offset int) error
- func (p *Process) GetTaskNum() int
- func (p *Process) ResetConditions(condition ...bool)
- func (p *Process) SetContext(ctx context.Context)
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConditions ¶ added in v3.8.1
Types ¶
type Process ¶ added in v3.8.1
type Process struct { Tasks []*Task // Only all RunCondition is true, process will exec tasks. RunConditions []bool // contains filtered or unexported fields }
func NewProcess ¶ added in v3.8.1
func NewProcess() *Process
func (*Process) AddConditions ¶ added in v3.8.1
func (*Process) ContinueExec ¶ added in v3.8.1
func (*Process) ExecOffset ¶ added in v3.8.1
func (*Process) GetTaskNum ¶ added in v3.8.1
func (*Process) ResetConditions ¶ added in v3.8.1
func (*Process) SetContext ¶ added in v3.8.1
Click to show internal directories.
Click to hide internal directories.