package
2.7.3
Repository: https://github.com/aeo123/gf.git
Documentation: pkg.go.dev

# Functions

Add adds a timing job to the default timer, which runs in interval of `interval`.
AddEntry adds a timing job to the default timer with detailed parameters.
AddOnce is a convenience function for adding a job which only runs once and then exits.
AddSingleton is a convenience function for add singleton mode job.
AddTimes is a convenience function for adding a job which is limited running times.
DefaultOptions creates and returns a default options object for Timer creation.
DelayAdd adds a timing job after delay of `interval` duration.
DelayAddEntry adds a timing job after delay of `interval` duration.
DelayAddOnce adds a timing job after delay of `interval` duration.
DelayAddSingleton adds a timing job after delay of `interval` duration.
DelayAddTimes adds a timing job after delay of `interval` duration.
Exit is used in timing job internally, which exits and marks it closed from timer.
New creates and returns a Timer.
SetInterval runs the job every duration of `delay`.
SetTimeout runs the job once after duration of `delay`.

# Constants

Job or Timer is closed and waiting to be deleted.
Job or Timer is ready for running.
Job or Timer is already running.
Job or Timer is stopped.

# Structs

Entry
Entry is the timing job.
Timer is the timer manager, which uses ticks to calculate the timing interval.
TimerOptions is the configuration object for Timer.

# Type aliases

JobFunc is the timing called job function in timer.