Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultTicker ¶ added in v1.6.0
type DefaultTicker struct {
// contains filtered or unexported fields
}
DefaultTicker is an implementation of ticker which simply delegates to time.Ticker.
func NewDefaultTicker ¶ added in v1.6.0
func NewDefaultTicker(period time.Duration) *DefaultTicker
type StopFn ¶
type StopFn func()
func RunTaskRepeateadly ¶
func RunTaskRepeateadly(task func(), t ticker) StopFn
Click to show internal directories.
Click to hide internal directories.