Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interval ¶
type Interval struct {
// contains filtered or unexported fields
}
Interval represents a repeatedly called a function with fixed time delay. Use Start() to start running an interval.
func Set ¶
Set repeatedly calls a function with a fixed time delay between each call. Returns an interval object which can be later removed by calling Clear().
func (Interval) Clear ¶
func (iv Interval) Clear()
Clear cancels the repeating action which was previously established by Set(). This operation waits for an active action to complete before returning. This function should never be called from inside of the repeated function, otherwise the app will block.
Click to show internal directories.
Click to hide internal directories.