Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterruput = errors.New("run interruput")
任务执行中断
View Source
var ErrTimeOut = errors.New("run time out")
任务执行超时
Functions ¶
This section is empty.
Types ¶
type TimerRunner ¶
type TimerRunner struct {
// contains filtered or unexported fields
}
func New ¶
func New(tm time.Duration) *TimerRunner
func (*TimerRunner) Add ¶
func (r *TimerRunner) Add(tasks ...func())
Click to show internal directories.
Click to hide internal directories.