Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Don't use directly, to use call:
s := scheduler.NewScheduler(yourCallback)
func NewScheduler ¶
func NewScheduler(callback func()) *Scheduler
Call to create a scheduler with the callback function to use
Things like this will work in the callback
var counter int func callback() { counter++ }()
func (*Scheduler) ChangeInterval ¶
Call with a time.Duration to change the interval at witch the scheduler runs
Had to force it to be non blocking as it would block in some scenarios
Click to show internal directories.
Click to hide internal directories.