2023-01-08 19:35:23 +11:00
|
|
|
package common
|
2022-12-25 22:53:51 +11:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
type ExitTask struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewExitTask() *ExitTask {
|
|
|
|
return &ExitTask{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (task *ExitTask) Execute() error {
|
|
|
|
return errors.New("exit")
|
|
|
|
}
|
|
|
|
|
2023-01-08 19:35:23 +11:00
|
|
|
func (task *ExitTask) SetParentTaskers(tasks []Tasker) {
|
|
|
|
}
|
|
|
|
|
2022-12-25 22:53:51 +11:00
|
|
|
func (task *ExitTask) String() string {
|
|
|
|
return "Exit"
|
|
|
|
}
|