package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jun 28, 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 task total number of tasks.
TickMs Basic time tick milliseconds.
Task alias timer.Task
AfterFunc adds a function to the timer.
NewTask new task with delay duration and empty job, the accuracy is milliseconds.
NewTaskFunc new task with delay duration and function job, the accuracy is milliseconds.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.