add comment
This commit is contained in:
parent
686b73891e
commit
f4a829fbf6
@ -128,10 +128,10 @@ type Task struct {
|
|||||||
DoFunc TaskFunc
|
DoFunc TaskFunc
|
||||||
Prev time.Time
|
Prev time.Time
|
||||||
Next time.Time
|
Next time.Time
|
||||||
Timeout time.Duration
|
Timeout time.Duration // timeout duration
|
||||||
Errlist []*taskerr // like errtime:errinfo
|
Errlist []*taskerr // like errtime:errinfo
|
||||||
ErrLimit int // max length for the errlist, 0 stand for no limit
|
ErrLimit int // max length for the errlist, 0 stand for no limit
|
||||||
errCnt int // records the error count during the execution
|
errCnt int // records the error count during the execution
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTask add new task with name, time and func
|
// NewTask add new task with name, time and func
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user