Documentation ¶
Index ¶
- Constants
- Variables
- func After(timeout time.Duration) <-chan struct{}
- func Cancel(item *TimerItem)
- type Timer
- func (tm *Timer) After(timeout time.Duration) <-chan struct{}
- func (tm *Timer) AfterFunc(timeout time.Duration, cb func()) *TimerItem
- func (tm *Timer) Cancel(item *TimerItem)
- func (tm *Timer) Once(timeout time.Duration, cb func()) *TimerItem
- func (tm *Timer) Reset(item *TimerItem, delay time.Duration)
- func (tm *Timer) Schedule(delay time.Duration, interval time.Duration, repeat int64, cb func()) *TimerItem
- func (tm *Timer) Size() int
- func (tm *Timer) Stop()
- type TimerItem
- type Timers
Constants ¶
View Source
const (
TIME_FOREVER = time.Duration(math.MaxInt64)
)
Variables ¶
View Source
var (
DefaultTimer = New("default")
)
Functions ¶
Types ¶
type Timer ¶
timer
type TimerItem ¶
timer item
Click to show internal directories.
Click to hide internal directories.