Documentation ¶
Index ¶
Constants ¶
View Source
const UnknownId = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptiveTicker ¶
type AdaptiveTicker struct {
// contains filtered or unexported fields
}
func NewAdaptiveTicker ¶
func NewAdaptiveTicker() *AdaptiveTicker
func (*AdaptiveTicker) Create ¶
func (a *AdaptiveTicker) Create(target chan *TimerHandler, event interface{}, first int64, interval int64, count int64) int
func (*AdaptiveTicker) Quit ¶
func (a *AdaptiveTicker) Quit()
func (*AdaptiveTicker) Remove ¶
func (a *AdaptiveTicker) Remove(tids []int) bool
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(acquireFn []func(), releaseFn []func()) *Session
type TimerGroupHandler ¶
type TimerGroupHandler struct {
// contains filtered or unexported fields
}
func NewGroupEvent ¶
func NewGroupEvent(event *TimerHandler) *TimerGroupHandler
func (*TimerGroupHandler) Add ¶
func (g *TimerGroupHandler) Add(event *TimerHandler)
type TimerHandler ¶
type TimerHandler struct { Event interface{} // contains filtered or unexported fields }
func NewTimerHandler ¶
func NewTimerHandler(target chan *TimerHandler, event interface{}, first int64, interval int64, loopCount int64, min int64) *TimerHandler
func (*TimerHandler) IsUsable ¶
func (t *TimerHandler) IsUsable() bool
func (*TimerHandler) PostEvent ¶
func (t *TimerHandler) PostEvent()
func (*TimerHandler) Prepare ¶
func (t *TimerHandler) Prepare(now int64)
func (*TimerHandler) SetId ¶
func (t *TimerHandler) SetId(id int)
func (*TimerHandler) Unset ¶
func (t *TimerHandler) Unset()
Click to show internal directories.
Click to hide internal directories.