package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Dec 26, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AddTask adds a task to the timer.
Go run a function in `ants` goroutine pool, if submit failed, fallback to use goroutine.
Started have started or not.
TaskCounter return the total number of tasks.
TickMs return Basic time tick milliseconds.
WheelSize return the wheel size.
alias
AfterFunc adds a function to the timer.
NewTask new task with delay duration and an empty job, the accuracy is milliseconds.
NewTaskFunc new task with delay duration and a function job, the accuracy is milliseconds.
NewTaskJob new task with delay duration and a job, the accuracy is milliseconds.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.