add comment

This commit is contained in:
Jason li 2021-01-14 11:59:02 +08:00
parent 686b73891e
commit f4a829fbf6

View File

@ -128,10 +128,10 @@ type Task struct {
DoFunc TaskFunc
Prev time.Time
Next time.Time
Timeout time.Duration
Errlist []*taskerr // like errtime:errinfo
ErrLimit int // max length for the errlist, 0 stand for no limit
errCnt int // records the error count during the execution
Timeout time.Duration // timeout duration
Errlist []*taskerr // like errtime:errinfo
ErrLimit int // max length for the errlist, 0 stand for no limit
errCnt int // records the error count during the execution
}
// NewTask add new task with name, time and func