22 lines
300 B
Go
22 lines
300 B
Go
|
package common
|
||
|
|
||
|
import "errors"
|
||
|
|
||
|
type ExitTask struct {
|
||
|
}
|
||
|
|
||
|
func NewExitTask() *ExitTask {
|
||
|
return &ExitTask{}
|
||
|
}
|
||
|
|
||
|
func (task *ExitTask) Execute() error {
|
||
|
return errors.New("exit")
|
||
|
}
|
||
|
|
||
|
func (task *ExitTask) SetParentTaskers(tasks []Tasker) {
|
||
|
}
|
||
|
|
||
|
func (task *ExitTask) String() string {
|
||
|
return "Exit"
|
||
|
}
|