Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextIsDone ¶
ContextIsDone returns true if the supplied context is reporting that it is done.
func GetShuffledIntList ¶
GetShuffledIntList returns a list of contiguous sudo-randomly shuffled integers n, where n[i] is in [1, size].
Types ¶
type Pacer ¶
type Pacer struct {
// contains filtered or unexported fields
}
A Pacer provides a means of pausing program execution for a period of time.
func SetNormalPace ¶
SetNormalPace returns a Pace where mu is the average wait time, sigma is the standard deviation of the wait time, and basis is the wait-time unit duration.
func SetUniformPace ¶
SetUniformPace returns a pace where the wait time is uniformly distributed between min and max, and basis is the wait-time unit duration.
Click to show internal directories.
Click to hide internal directories.