Documentation ¶
Index ¶
- func Delay(z int)
- func DurationToMill(d time.Duration) int64
- type AntsLogger
- type EsQueue
- func (q *EsQueue) Capaciity() uint32
- func (q *EsQueue) Get() (val interface{}, ok bool, quantity uint32)
- func (q *EsQueue) Gets(values []interface{}) (gets, quantity uint32)
- func (q *EsQueue) Put(val interface{}) (ok bool, quantity uint32)
- func (q *EsQueue) Puts(values []interface{}) (puts, quantity uint32)
- func (q *EsQueue) Quantity() uint32
- func (q *EsQueue) String() string
- type EventLoop
- func (this_ *EventLoop) AfterFuncPool(d time.Duration, f func())
- func (this_ *EventLoop) AfterFuncQueue(d time.Duration, f func())
- func (this_ *EventLoop) PostEventQueue(e interface{})
- func (this_ *EventLoop) PostFuncQueue(f func())
- func (this_ *EventLoop) Start(f func(event interface{}), endF ...func())
- func (this_ *EventLoop) Stop()
- func (this_ *EventLoop) Stopped() bool
- func (this_ *EventLoop) TickPool(d time.Duration, f func() bool)
- func (this_ *EventLoop) TickQueue(d time.Duration, f func() bool)
- func (this_ *EventLoop) UntilFuncPool(t time.Time, f func())
- func (this_ *EventLoop) UntilFuncQueue(t time.Time, f func())
- type Ticker
- func (this_ *Ticker) AfterFunc(d time.Duration, f func())
- func (this_ *Ticker) AfterFuncPool(d time.Duration, f func())
- func (this_ *Ticker) AfterFuncQueue(d time.Duration, f func())
- func (this_ *Ticker) GetPool() *ants.Pool
- func (this_ *Ticker) GetQueue() *EsQueue
- func (this_ *Ticker) Stop()
- func (this_ *Ticker) Tick(d time.Duration, fb func() bool)
- func (this_ *Ticker) TickPool(d time.Duration, fb func() bool)
- func (this_ *Ticker) TickQueue(d time.Duration, fb func() bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToMill ¶
Types ¶
type AntsLogger ¶
type AntsLogger struct {
// contains filtered or unexported fields
}
func (*AntsLogger) Printf ¶
func (this_ *AntsLogger) Printf(format string, args ...interface{})
type EsQueue ¶
type EsQueue struct {
// contains filtered or unexported fields
}
EsQueue lock free queue
type EventLoop ¶
type EventLoop struct {
// contains filtered or unexported fields
}
func NewEventLoop ¶
func (*EventLoop) AfterFuncPool ¶
func (*EventLoop) AfterFuncQueue ¶
func (*EventLoop) PostEventQueue ¶
func (this_ *EventLoop) PostEventQueue(e interface{})
func (*EventLoop) PostFuncQueue ¶
func (this_ *EventLoop) PostFuncQueue(f func())
func (*EventLoop) UntilFuncPool ¶
func (*EventLoop) UntilFuncQueue ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
func (*Ticker) AfterFuncPool ¶
func (*Ticker) AfterFuncQueue ¶
Click to show internal directories.
Click to hide internal directories.