package
1.0.2
Repository: https://github.com/ravior/gserver.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.
After add a timing job after delay of duration.
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.
No description provided by the author
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.

# Variables

No description provided by the author

# Structs

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

# Type aliases

JobFunc is the job function.