Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeapTaskPool ¶
func NewHeapTaskPool ¶
func NewHeapTaskPool(now base.FNNow) *HeapTaskPool
func (*HeapTaskPool) RemoveTask ¶
func (tp *HeapTaskPool) RemoveTask(key string) error
func (*HeapTaskPool) Start ¶
func (tp *HeapTaskPool) Start()
func (*HeapTaskPool) Stop ¶
func (tp *HeapTaskPool) Stop()
type ScheduleTaskPool ¶
type ScheduleTaskPool interface {
AddTask(key string, t time.Time, exec TaskFunc, params ...any) error
RemoveTask(key string) error
Stop()
}
func CreateHeapTaskPool ¶
func CreateHeapTaskPool() ScheduleTaskPool
func CreateHeapTaskPoolWithFNNow ¶
func CreateHeapTaskPoolWithFNNow(now base.FNNow) ScheduleTaskPool
Click to show internal directories.
Click to hide internal directories.