Documentation ¶
Overview ¶
Package timeutil implements extra utilities dealing with time not found in the standard library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproxSleep ¶
ApproxSleep is a stoppable time.Sleep that adds a slight random variation to the wakeup time in order to prevent thundering herds.
func ExpBackoff ¶
ExpBackoff doubles the backoff time, if the result is longer than the parameter max, max will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.