package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

Delay generates a generic delay form a t, a sleeper, and a generator.
Fixed returns a delay with fixed latency.
FixedGenerator returns a delay with fixed latency.
VariableNormal is a delay following a normal distribution Notice that to implement the D interface Set can only change the mean delay the standard deviation is set only at initialization.
VariableNormalGenerator makes delays that following a normal distribution.
VariableUniform is a delay following a uniform distribution Notice that to implement the D interface Set can only change the minimum delay the delta is set only at initialization.
VariableUniformGenerator generates delays following a uniform distribution.

# Interfaces

D (Delay) makes it easy to add (threadsafe) configurable delays to other objects.
Generator provides an interface for generating wait times.