Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IncTimer ¶
IncTimer should be the preferred mechanism over calling `time.After` when wanting an `After`-like function in a loop. This prevents memory build up as the `time.After` method creates a new timer instance every time it is called, and it is not garbage collected until after it fires. Conversely, IncTimer only uses one timer and correctly stops the timer, clears its channel, and resets it everytime that `After` is called.
Click to show internal directories.
Click to hide internal directories.